Home >Java >javaTutorial >How to start writing programs in eclipse
How to start writing programs in eclipse?
Write your first Java code using Eclipse
Recommended: "Java Tutorial"
First Open the Eclipse software you installed.
Then select File->New->Java Project
Then enter the project name and click Finish
Then find the project and open it, right-click src and select->New->Class
Fill in the class name , select the following public static void main(String[]args)
and then write the code
public class Demo { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("Hello World"); } }
Click Click the Run button above to confirm and you can see the code running results
The above is the detailed content of How to start writing programs in eclipse. For more information, please follow other related articles on the PHP Chinese website!