I am a total newbie in Java and Eclipse. I googled for lots of help but still confused. From Eclipse I click run then choose Java application and I get this error immediatel
You cannot define the main method as you do in C++.
For the Java interpreter, the main method must always be public and static. So you need to change your main method signature to
public static void main(String args[])
Try this, and feel free to ask further. :-)