在eclipse中对于java的操作

1. 新建project

new project --> java project -->input the name of the project and choose the jre -- press the button"New Java Package"--> input the package's name -->under the package, press the "New Java Class" button 

下面这是一个小程序,project :HelloWorld   ,  package name:helloworldtest     ,   class name:Exercise

package helloworldtest;

public class Exercise {
    public static void main(String args[]){
        System.out.println("hello wang. This is java");
    }
}

 

posted @ 2014-10-03 17:41  刺客主谋  Views(123)  Comments(0Edit  收藏  举报