Hello,world

hell world

新建一个文件夹

新建一个Java文件

 

 编写代码

public class hello{
public static void main(String[]args){
System.out.print("hello,world!");
}
}

 

 

 

编译 Javac +文件名,生成一个class文件,

 

运行 Java.class

 

 

 

 

 运行成功!

 

 

 

 

posted @ 2021-03-09 23:49  骑车旅行的狸  阅读(35)  评论(0)    收藏  举报