Java: Why is their no output? Please help. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Java: Why is their no output? Please help.

public class Numbers { public static void main(String[] args) { int ten = 10; int five = 5; } public static void sum(int five, int ten) { int addMainVars; addMainVars = ten + five; System.out.println("10 + 5 is " + addMainVars + "."); } } I don't see anything wrong with it. Please help.

10th Aug 2018, 8:13 PM
Fleet
Fleet - avatar
2 Respostas
+ 2
That's the correct code. Hope it helps you. https://code.sololearn.com/ciXZW8Tmi0JE/?ref=app
10th Aug 2018, 8:37 PM
TheWhĀ”teCat šŸ‡§šŸ‡¬
TheWhĀ”teCat šŸ‡§šŸ‡¬ - avatar
0
Thank you very much! Thou hath saved me.
11th Aug 2018, 2:06 PM
Fleet
Fleet - avatar