eclipse的最简单程序HelloWorld

1.下载eclipse

2.解压即可无需安装(前提是已经安装过jdk,见序列一)

3.File->new->java project

    project name:HelloWorld

->Finish

4.关闭起始页,在HelloWorld上右击->new->class:

  Name:HelloWorld

5.打入代码

import java.io.*;
public class HelloWorld{
 public static void main(String args[]){
   System.out.println("Hello World!");
   }
}


6.Run->Run as Application

输出HelloWorld;

 

之后大家可以尽情的开始java语法的学习和调试了

java实验指导http://download.csdn.net/detail/tianhen791/4028760

你可能感兴趣的:(java,eclipse,String,application,import)