This is the print statement in Java
What is System.out.println()?
int x = 2;
int y = 3;
System.out.println(3 * x - y);
What is 3;
This method returns the number of characters in a string, including spaces and punctuation.
What is length()?
Java is this type of language
what is a programming language?
String word = "elephant";
String newWord = word.substring(3);
System.out.println(newWord);
What is "phant?
This type of variable is used to store decimals
What is a double?
int x = 10;
int y = 3;
System.out.println(x^2 - y);
What is 97?
"Temple".length();
These are used to make notes and explain code to other people Java without effecting the program
What are comments?
String word = "university";
String newWord = word.substring(0, 4);
System.out.println(newWord);
What is "univ"?
What is a boolean?
int x = 2;
int y = 3;
int z = 10;
System.out.println(z%x + y);
What is 3?
"House".length(); * "Pizza".length();
What is 25?
String is this type of Data Type.
What is a Object?
String word = "celebration";
String newWord = word.substring(3, 9);
System.out.println(newWord);
What is "ebrati"?
This type of variable is used to store words and phrases
What is a String?
System.out.println(3 *(6/2) + 7-1);
What is 15?
String message = "Sally Sold Seashells By the Seashore!!"
int x = 29;
System.out.println(message.length() != x);
What is True?
This phrase is used to describe a specific letter or character
What is a character?
String word1 = "123house321";
String word2 = "321house123";
System.out.println(word1.substring(0,3).equals(word2.substring(8)));
What is True?
This is what it's called when you change one variable type into another
What is type casting?
Int x = 6+3-4 + 10%2;
String h = "house";
System.out.println(x * h.length());
What is 25?
String message = "_1_2_3_4_5!";
int x = message.length();
int y = 10;
System.out.print(x != y);
What is True.
This term is used to describe the % symbols in Java
What is modulo?
String word = "synchronization";
String newWord = word.substring(word.length() - 5);
System.out.println(newWord);
What is "ation" ?