在eclipse中对于java的操作

时间:2014-10-03 18:36:45   收藏:0   阅读:233

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

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!