This variable type stores whole numbers.
What is an int?
These are used to end and separate program instructions, just like periods are used to separate English sentences.
What are semicolons?
This is a sequence of instructions that the computer will run one at a time.
What is a program?
public static void main(String [] args) {
system.out.println(“This is Jeopardy!”);
}
System should be spelled with a capital S?
This is how we negate a boolean or operator.
This variable type stores words or sentences.
What is a String?
These mark the beginning and end points of classes, methods, and conditionals.
What are curly brackets?
These are groups of instructions that allow us to reuse big blocks of code.
What are methods?
public static void main(String [] args) {
int a = 5
System.out.println(“Adding 10 to a”)
a = a + 10
System.out.println(“a is now: ”)
System.out.println(a)
}
What are missing semicolons?
These are the two steps to creating a variable.
What is declare and assign?
This variable type stores numbers with a decimal point.
What is a double?
These are placed at the beginning and end of text to create a String inside Java.
What are quotation marks?
This is a set of instructions that runs if and only if something is true.
What is a conditional or an if statement?
public static void main(String [] args) {
int a = 3;
int b = 2;
int c = a + b;
System.out.println(c);
What is a missing curly bracket?
This is how you would make a few lines of code repeat based on a condition.
What is a while loop?
This variable type stores a value that is either true or false.
What is a boolean?
This is what we use when we want to see if two things are equal inside a conditional.
What is the double equals sign?
This is a container that stores information for the computer to remember.
What is a variable?
public class CharacterPrinter{
public static void main(String[] args){
String name = "Bucky";
}
}
System.out.println("Welcome to the game!");
There is code written outside of the class and main method bodies?
This is how you would make some lines of code repeat a set number of times.
What is a for loop?
This is the key word that makes a new instance of an object after a declaration.
What is "new"?
When we want to give information to methods, we place the information between these.
What are parentheses?
This defines what kinds of information a variable can hold.
What is a type?
public static void main(String [] args) {
double fusionRating = 2.5;
if (fusionRating < 3.0){
System.out.println(“Cold Fusion
is feeling normal today.”);
}
else if(fusionRating = 3.0) {
System.out.println(“Look out!
He’s about to turn into Warm Fission!”);
}
else if(fusionRating > 3.0) {
System.out.println(“WARM
FISSION SMASH!!”);
}
}
What is a single equals sign in the conditional?
This is a block of code that has a name and can be called for easy repetition of code.
What is a method or function?