-
打开eclipse,选择“file——new——Java project”
-
为我们的java项目取一个名字,然后点击完成。
-
这时候左侧列表就有了我们刚才新建的java项目,点开项目,在src目录下新建一个class。
-
在弹框中,填写我们jave程序的名字,选择完成。
-
这里编写一个简单的java程序为例,Ctrl+s保存。
-
现在要运行java程序啦,点击上方绿色小三角,选择run as java applacation。
-
在下方就输出我们的程序结果啦~