1、先新建一个java项目名为helloword的项目
2、新建一个与项目文件名为相同的类,必须相同!
编写第一个程序,helloworld
package helloworld;
public class helloworld {
public static void main(String []args) {
System.out.println("Hello world!");
}
}
3、运行java文件,ctrl+F11或选择“Run”-“run”运行
console控制台可以看到
终端运行