0

Why is this code telling me error

class MyClass { public static void main(string[ ] args) { System.out.println("Hello World"); } }

21st Feb 2020, 10:46 AM
fasanya moses
fasanya moses - avatar
1 Answer
+ 8
There is no type "string", but there is type "String". The compile error should be self-explanatory.
21st Feb 2020, 10:51 AM
Hatsy Rei
Hatsy Rei - avatar