Write a program that declares the following variables in the main method:
String name, int age, and String city.
Note: "Declaring a variable" is the same thing as "creating a variable".
Declare variables
- 1
Locked
Comments (5)
- Popular
- New
- Old
You must be signed in to leave a comment
Anonymous #10935974
2 March, 22:00
I added numper to the variable age and run give me true
0
javist Android Developer
24 February, 17:35
code entry the best for practice
0
SivaHack
17 February, 02:41
//your choice 🤪
String name ="SIVAHACKER";//your name
int age= 22;//your age
String city="India";//your city name
0
IRFAN BAIG
16 February, 10:49
String name;
int age;
String city;
0
Vusal Mammadov
13 February, 04:14
String name, city;
int age;
0