0

[SOLVED] Why error text, because I run the code

public class HelloWorld { public static void main(String[] args { System.out.println("HelloWorld! "); // Local-Variable Type Inference var s=" HelloJava 10!"; System.out.println(s); } }

29th Mar 2020, 8:26 AM
Linux pro
Linux pro - avatar
4 Answers
+ 3
Š»ŠµŠ³Š¾ Š°Š½ŠøŠ¼Š°Ń†ŠøŠø , you are missing the closing bracket ")" after the main method declaration.
29th Mar 2020, 8:39 AM
TheWhĀ”teCat šŸ‡§šŸ‡¬
TheWhĀ”teCat šŸ‡§šŸ‡¬ - avatar
+ 3
Š»ŠµŠ³Š¾ Š°Š½ŠøŠ¼Š°Ń†ŠøŠø you forgot to close void main ( closing parenthesis voide main ()
29th Mar 2020, 8:41 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 3
In second line you missed round brac...
30th Mar 2020, 7:38 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Thanks
29th Mar 2020, 8:42 AM
Linux pro
Linux pro - avatar