Deprecated: Creation of dynamic property Typecho\Widget\Request::$feed is deprecated in /www/wwwroot/sangxuesheng/var/Widget/Archive.php on line 246
听闻 All in the game. - hello https://sangxuesheng.com/tag/hello/ Hello,World编写 https://sangxuesheng.com/archives/15.html 2020-12-25T16:37:00+08:00 Hello Woeld新建一个文件夹,存放学习笔记新建一个java文件文件后缀名为.javaHelloWoeld.java【注意点】系统可能没有显示文件后缀名,需要手动打开编写代码public class Hello{ public static void main(String[] args){ System.out.print("Hello,World!"); } }编译javac java文件,会生成一个class文件可能会遇到的问题每个单词的大小不能出现问题,java是大小写敏感的输出尽量使用英文文件名和类名必须保持一致,不然报错符号使用了中文,也会报错。 Hello,World! https://sangxuesheng.com/archives/14.html 2020-12-25T16:20:00+08:00 注意,代码内容要全部都是英文的public class Hello{ public static void main(String[] args){ System.out.print("Hello,World!"); } } Hello World! https://sangxuesheng.com/archives/10.html 2020-12-16T17:31:00+08:00 Hello World.