Java || Run the first JAVA program

Java || The first Java program

Insert picture description here

01: Open the eclipse software and right-click to create a new Java project

Select File->
Insert picture description here
New- > Java Project in turn and fill in the project name in the new pop-up window (here firstText is used as an example)
Insert picture description here

02: Create a new class file

Right-click on the project you just created, then select new–> class
Insert picture description here
and enter the name in the new pop-up window (here text is used as an example), and then click finish
Insert picture description here

03: Write code and run

Insert picture description here

Appendix: Code

package firstText;

public class text {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		System.out.println("今天是2020-04-11");
	}

}
Published 2 original articles · Likes0 · Visits0

Guess you like

Origin blog.csdn.net/qq_43543920/article/details/105457871