6th Jan 2021, 4:08 PM
Amateur
4 odpowiedzi
+ 3
Main method order is : public static void main(String s[]) { You wrote main void(String s[]) so here void becomes method name, main invalid. Return type should comes first.
6th Jan 2021, 4:17 PM
Jayakrishna 🇮🇳
+ 2
You need to swap main with void. void comes first in a function declaration.
6th Jan 2021, 4:13 PM
Jianmin Chen
Jianmin Chen - avatar
+ 1
🙏
6th Jan 2021, 4:23 PM
Amateur
+ 1
🙏
6th Jan 2021, 4:24 PM
Amateur