Declare variables

  • 1
  • Locked
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".
You can't complete this task, because you're not signed in.
Comments (7)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
San Shein
Level 3 , Thailand
16 July, 16:17
The comment line /* Declare variable */ should be inside the main method.
Roman
Level 41
18 July, 05:32
No, it shouldn't.
Anonymous #10935974
Level 2 , Saudi Arabia
2 March, 22:00
I added numper to the variable age and run give me true
javist Android Developer
24 February, 17:35
code entry the best for practice
SivaHack
Level 1
17 February, 02:41
//your choice 🤪 String name ="SIVAHACKER";//your name int age= 22;//your age String city="India";//your city name
IRFAN BAIG
Level 9 , India, India
16 February, 10:49
String name; int age; String city;
Vusal Mammadov
Level 2 , United States of America, United States
13 February, 04:14
String name, city; int age;