Declare variables

  • 1
  • Locked
In Java, you can't simply start using a variable! Nobody will understand you. Compilers won't understand and they'll curse at you—you'll see! So if you decide to do something with a variable, you have to announce your intentions publicly! Let's write a program that declares int and String variables.
You can't complete this task, because you're not signed in.
Comments (50)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Aiden Reed
Level 2 , United States of America, United States
17 July, 15:56
Finally I did it without a hint yesssssssssssss
ronniecyrus72
Level 2 , Port-of-spain, Panama
19 June, 18:56
Took a few tries but finally got it. This method of learning is addictive and so much fun. This is the best code learning experience I have ever had
Jhansi Kamal
Level 2 , United States of America, United States
30 May, 06:59
Done
Daniella 🦸🏻‍♀️
Level 1 , United States
13 April, 13:07
so
Daniella 🦸🏻‍♀️
Level 1 , United States
13 April, 11:31
hi
Anonymous #10815700
Level 1 , United States of America, United States
21 September 2021, 15:20
CodeGym rules!!!
Aydenboi
Level 0
16 June 2021, 09:31
E
erick majimbo
Level 1 , Nairobi, Kenya
28 May 2021, 22:01
Done....still going strong
28 May 2021, 10:09
Done😃
Manoj Rajbanshi
Level 1 , Daly City, United States
27 April 2021, 03:33
Done