From 12100f993ffa0d362cb00441a882b27a80e20d60 Mon Sep 17 00:00:00 2001 From: xuxin <840198532@qq.com> Date: Wed, 15 Jul 2026 13:48:08 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=AC=AC=E4=B8=80=E6=AC=A1=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=EF=BC=8C=E6=B3=A8=E9=87=8A=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 39 ++++++++++++++++++++++++++++ day01/src/com/inmind/HelloWorld.java | 16 ++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .gitignore create mode 100644 day01/src/com/inmind/HelloWorld.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..01ed9e0 --- /dev/null +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/day01/src/com/inmind/HelloWorld.java b/day01/src/com/inmind/HelloWorld.java new file mode 100644 index 0000000..aa495ab --- /dev/null +++ b/day01/src/com/inmind/HelloWorld.java @@ -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!"); + } +}