Current location - Recipe Complete Network - Take-out food franchise - How to use eclipse to develop software
How to use eclipse to develop software
Methods/steps

1

Start Eclipse. When you start the software for the first time, you will be prompted to select a workspace. You can create a new folder on your hard disk as a workspace, and this folder will store all the source codes you have written.

2

How to create a simple Java project?

three

The following figure shows the project name and source folder respectively. Typically, src is the default root folder.

four

Create a new package in the project.

It is worth noting that package names and project names generally start with lowercase, while Java class names start with uppercase.

five

Create a new Java class in the package. You can have multiple Java classes in a package. Java classes are where we write code.

six

One of the simplest and most standard Java classes.

1 in the figure represents the package where the Java class is located.

2 in the figure represents the class name of the Java class.

3 in the figure represents the main method of the Java class.

seven

Add a line of print statement to the main method of Java class, and after execution, you can see the printed content output in the console.

eight

In this Java class, a test method is added, which has a printed statement.

When the program executes again, you can see two lines of code output in the console.

The tag shows the order in which the program is executed.

/article/63f 23628 1dc 6670208 ab 3d c8 . html