Complete the code to declare a variable of type int.
int number = [1];The variable number is declared as an int, so it must be assigned an integer value like 10.
Complete the code to declare a variable of type boolean.
boolean isJavaFun = [1];The boolean type accepts only true or false without quotes.
Fix the error in the code to correctly declare a double variable.
double price = [1];The double type requires a decimal number without quotes and with a dot as decimal separator.
Fill both blanks to declare a char variable and assign a letter.
char letter = [1][2];
The char type holds a single character enclosed in single quotes. The second blank is empty because the character literal is complete.
Fill all three blanks to declare variables of types int, float, and boolean.
int count = [1]; float temperature = [2]f; boolean isActive = [3];
The int variable count needs an integer like 100.
The float variable temperature needs a decimal number with an 'f' suffix.
The boolean variable isActive needs the literal true or false without quotes.