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

How to start writing programs in eclipse

藏色散人
藏色散人 Original
2019-10-12 11:54:09 8737browse

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"); } }

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!

Statement:
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