Hello,
I think the code in editor is not the code you are trying to compile. If you look at the error it clearly says <identifier> expected after the word
Public
, and
Public
is not a valid identifier. It should be
public
.
Not really related to this error but the preferred syntax for main method is
public static void main(String[] args)
Regards,