1.第一次提交,注释的说明
This commit is contained in:
39
.gitignore
vendored
Normal file
39
.gitignore
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
# 忽略任意目录层级下的 .iml 文件(核心规则)
|
||||||
|
**/*.iml
|
||||||
|
|
||||||
|
# 保留 IDEA 其他核心忽略项(完整配置如下)
|
||||||
|
# --------------------------- IntelliJ IDEA 相关 ---------------------------
|
||||||
|
.idea/
|
||||||
|
*.iws
|
||||||
|
*.ipr
|
||||||
|
out/
|
||||||
|
*.idea_modules/
|
||||||
|
.idea/misc.xml
|
||||||
|
.idea/workspace.xml
|
||||||
|
.idea/tasks.xml
|
||||||
|
.idea/gradle.xml
|
||||||
|
.idea/dictionaries
|
||||||
|
.idea/libraries
|
||||||
|
.idea/runConfigurations/
|
||||||
|
.idea/shelf/
|
||||||
|
.idea/vcs.xml
|
||||||
|
|
||||||
|
# --------------------------- Java 项目通用 ---------------------------
|
||||||
|
*.class
|
||||||
|
*.jar
|
||||||
|
*.war
|
||||||
|
*.ear
|
||||||
|
*.tmp
|
||||||
|
*.bak
|
||||||
|
*.swp
|
||||||
|
target/
|
||||||
|
build/
|
||||||
|
.gradle/
|
||||||
|
gradle-app.setting
|
||||||
|
!gradle-wrapper.jar
|
||||||
|
*.properties
|
||||||
|
!*.example.properties
|
||||||
|
logs/
|
||||||
|
*.log
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
16
day01/src/com/inmind/HelloWorld.java
Normal file
16
day01/src/com/inmind/HelloWorld.java
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
//注释:标注,解释,说明,能够让java编译器跳过对应的内容,直接编译,不影响java程序的结果
|
||||||
|
//单行注释:包的作用区分对应的类的路径
|
||||||
|
package com.inmind;
|
||||||
|
//类的定义,固定写法,用来定义类,HelloWorld就是类名
|
||||||
|
public class HelloWorld {
|
||||||
|
/*
|
||||||
|
public static void main(String[] args):是一个标准主程序的入口(固定写法)
|
||||||
|
void:表示方法返回值类型,void表示无返回值
|
||||||
|
main:方法名
|
||||||
|
(String[] args):方法参数
|
||||||
|
{}:表示范围
|
||||||
|
*/
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println("大家好,我是java!");
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user