+ 1

this is my 1st java program please help me its not working

https://code.sololearn.com/cMS3uwBt2mXK/?ref=app

19th Oct 2017, 6:37 AM
Farhan
Farhan - avatar
2 ответов
+ 17
class MyClass { public static void main(String[ ] args) { System.out.println("Hello World"); System.out.println("i am farhan"); } } //corrected code , i guess that u want that output ☺
19th Oct 2017, 7:06 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 1
there can be only one main method in a Java programme.
19th Oct 2017, 7:21 AM
Siva Shankar
Siva Shankar - avatar