第三天 hello world
-
建立文件夹存放代码
-
新建一个Java文件
-
文件后缀为java
-
hello world
-
编写代码
public class Hello{
public static void main (String[] args){
System.out.print("Hello,World");
}
}-
编译javac java 生成class文件
-
运行class文件 java class文件
可能遇到的情况
-
Java对大小写是敏感的 单词大小写不能出现问题
-
尽量使用英文
-
文件名和类名必须保持一致 并且首字母大写
-
符号使用了英文
-
-
-
-
-

浙公网安备 33010602011771号