To declare more than one variable of the same type, use a comma-separated list:
Example
int x = 5, y = 6, z = 50;
System.out.println(x + y + z);
Practice Excercise Practice now
To declare more than one variable of the same type, use a comma-separated list:
int x = 5, y = 6, z = 50;
System.out.println(x + y + z);
Practice Excercise Practice now