“No Output” | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

“No Output”

I’m currently learning Java and I was just experimenting with the code after following the module when I got a No Ouput error message. What does that mean and also why are the numbers orange?? Thank you! https://code.sololearn.com/cTG5173a1x2p/?ref=app

25th Jun 2019, 4:29 PM
MysteriousDryad
MysteriousDryad - avatar
7 Answers
0
your current current code is "system" it needs "System"
25th Jun 2019, 5:34 PM
yuulye
yuulye - avatar
+ 5
The reason the numbers are orange is because IDEs will generally highlight specific keywords, values, etc., and in the case of numbers within the SL code playground, they were given a orange colour. The reason why the code doesn't output anything is because you don't have anything that will output a value. In Java, you would output something to the console using System.out.println(value), so including that into your code will allow for whatever value you want to be printed to be put within the console
25th Jun 2019, 4:34 PM
Faisal
Faisal - avatar
+ 3
MysteriousDryad Java is case sensitive, so you would need to capitalize the S in "System" for it to run properly
25th Jun 2019, 5:27 PM
Faisal
Faisal - avatar
+ 2
Faisal Oh ok. That makes sense. I thought that I did something wrong with the numbers being orange. Thank you for clarifying that. Ohhhhh. I totally forgot about that. Like I said, I’m new to Java and still learning and experimenting.
25th Jun 2019, 5:25 PM
MysteriousDryad
MysteriousDryad - avatar
+ 2
Faisal yuulye Ohh. Gotcha Gotcha. It works now, thank you so much for y’alls help! I greatly appreciate it!
25th Jun 2019, 5:36 PM
MysteriousDryad
MysteriousDryad - avatar
+ 1
Try adding System.out.println(sum3);
25th Jun 2019, 4:50 PM
yuulye
yuulye - avatar
0
yuulye I did add that, then I got a error about something with the dot between System and out. What does that mean??
25th Jun 2019, 5:25 PM
MysteriousDryad
MysteriousDryad - avatar