在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");

    }

}

 

你可能感兴趣的:(eclipse)