![]() |
public class variables2 |
![]() |
{ |
![]() |
public static void main(String[] args) |
![]() |
{ |
![]() |
int i = 2; |
![]() |
String sentence = "I am a camera."; |
![]() |
double a = 2.0, b = 3.0; |
| Several variables of the same type can be initialized in one statement. | |
![]() |
int i = 2 * 3 + 5; |
![]() |
} |
![]() |
} |