1.3 第一个Java程序
public class HelloJava {
public static void main(String[] args) {
System.out.println("Hello Java");
}
}
创建一个新的文件夹编写好代码然后在命令提示符中操作
1.5 Eclipse的使用
package firstproject;
public class HelloJava {
private static String say ="我要学会你";
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("你好 Java" + say);
}
}
1.6 程序调试
package firstproject;
public class HelloJava {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("LeBron");
System.out.println("James");
System.out.println("詹密");
}
}