Java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Java

Does anyone know why this isn’t working? I keep getting ‘line 0 can not find symbol errors. public class Program { public static void main(String[] args) { int beer = 64; int whisky = 23; System.out.println(beer + whiskey); } }

25th Jan 2023, 12:32 PM
Louise Def
3 Answers
0
Check your variables names, you typed whiskey instead whisky
27th Jan 2023, 3:01 AM
Erik Jose
Erik Jose - avatar
+ 7
Copy paste to playground and Save code , share link here. The link you posted is private. Others can't see your code there...
25th Jan 2023, 12:39 PM
Jayakrishna 🇮🇳
+ 3
And please do not put links in the tag section. Put "Java" in the tag section.
25th Jan 2023, 2:41 PM
Lisa
Lisa - avatar