Files
javaSE-0419/day01/src/com/inmind/HelloWorld.java
2026-04-19 13:58:20 +08:00

36 lines
1.2 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.inmind;
//这是第一个java程序 ctrl+/ 单行注释
/*
多行注释
@authorxx
@date2026-1-1
类的功能在控制台输出你好java
注释:对代码进行说明,不会影响代码,不会进入字节码文件.class文件
-----------------------------------------------------------------
命名规则:硬性要求
标识符可以包含英文字母26个(区分大小写)、0-9数字 、$美元符号和_下划线
标识符不能以数字开头。
标识符不能是关键字。
命名规范:软性建议
类名规范:首字母大写,后面每个单词首字母大写(大驼峰式)。
方法名规范: 首字母小写,后面每个单词首字母大写(小驼峰式)。
变量名规范:全部小写。
*/
//HelloWorld就是类名
public class HelloWorld {
//这是里一个主方法,是程序的入口
public static void main(String[] args) {
//此处调用系统的输出方法,输出到控制台
System.out.println("你好java!");
System.out.println("你好java!");
System.out.println("你好java!");
System.out.println("你好java!");
System.out.println("添加了一些代码!!!");
}
}