click below
click below
Normal Size Small Size show me how
Declare/Assign
Java Declaration and Assignments Statements
| Question | Answer |
|---|---|
| Declare an integer variable named erceptor | int erceptor; |
| Declare a real number named entendre | double entendre; |
| Declare a boolean variable named bozo | boolean bozo; |
| Declare a character variable named broiled | char broiled; |
| Declare a String variable named cheese | String cheese; |
| Store the number 5 in eceptor | erceptor = 5; |
| Store the number 58.632 in entendre | entendre = 58.632; |
| Store the value false in bozo. | bozo = true; |
| Store the character z in broiled | broiled = 'z'; |
| Store the string literal gouda cheese | cheese = "gouda"; |