From ffd1b7b02557c67c026362f7705ce0851a352ce5 Mon Sep 17 00:00:00 2001 From: li204200 <2042004419@qq.com> Date: Wed, 25 Sep 2024 15:26:22 +0800 Subject: [PATCH] javatest and add .gitignore --- .gitignore | 18 ++++++++++++++++++ java/HelloWorld.java | 7 +++++++ 2 files changed, 25 insertions(+) create mode 100644 .gitignore create mode 100644 java/HelloWorld.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..73e4153 --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +# 忽略所有以 .a 结尾的文件 +*.a + +# 不能忽略所有 lib.a 文件 +!lib.a + +# 仅仅忽略当前目录下的 TODO 文件 +/TODO + +# 忽略 build 目录下的所有文件 +build/ + +# 仅仅忽略 doc 一个目录下的所有 .txt 文件 +doc/*.txt + +# 忽略 doc 目录下(包括子目录)的所有 .pdf 文件 +doc/**/*.pdf +9 \ No newline at end of file diff --git a/java/HelloWorld.java b/java/HelloWorld.java new file mode 100644 index 0000000..2fef3f8 --- /dev/null +++ b/java/HelloWorld.java @@ -0,0 +1,7 @@ +public class HelloWorld +{ + public static void main(String[] args) + { + System.out.println("helloworld"); + } +} \ No newline at end of file