0

Why this code is not working? Pls reply me is there anything wrong.

class MyClass { public static void main{String[ ] args}{ System.out.print("Hello World"); } } https://code.sololearn.com/WR6mrmI4KsuK/?ref=app

24th Aug 2017, 5:42 PM
Shoaib Hossaib
Shoaib Hossaib - avatar
2 Answers
+ 7
your String[] args should be wrapped with ( ) instead of { } below (or above, depending on various circumstances) is a correct code simply copy and run it
24th Aug 2017, 5:44 PM
Burey
Burey - avatar
+ 7
class MyClass { public static void main(String[] args){ System.out.print("Hello World"); } }
24th Aug 2017, 5:45 PM
Burey
Burey - avatar