Home > Java > javaTutorial > How to start writing programs in eclipse

How to start writing programs in eclipse

藏色散人
Release: 2019-10-12 11:54:09
Original
8863 people have browsed it

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.

How to start writing programs in eclipse

Then select File->New->Java Project

How to start writing programs in eclipse

Then enter the project name and click Finish

How to start writing programs in eclipse

Then find the project and open it, right-click src and select->New->Class

How to start writing programs in eclipse

Fill in the class name , select the following public static void main(String[]args)

How to start writing programs in eclipse

and then write the code

public class Demo {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello World");
}
}
Copy after login

How to start writing programs in eclipse

Click Click the Run button above to confirm and you can see the code running results

How to start writing programs in eclipse

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template