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
7 Answers
0
your current current code is "system" it needs "System"
+ 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
+ 3
MysteriousDryad Java is case sensitive, so you would need to capitalize the S in "System" for it to run properly
+ 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.
+ 1
Try adding
System.out.println(sum3);
0
yuulye I did add that, then I got a error about something with the dot between System and out. What does that mean??