From 34c8333c45693a8a80183186b2ec31385d8d2cd7 Mon Sep 17 00:00:00 2001 From: gitee-bot Date: Tue, 4 Nov 2025 02:33:03 +0000 Subject: [PATCH] Add README.md --- README.en.md | 29 +++++++++++++++++++++++++++++ README.md | 29 +++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 README.en.md create mode 100644 README.md diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000..180bbce --- /dev/null +++ b/README.en.md @@ -0,0 +1,29 @@ +# Java Fundamentals Learning Project + +## Introduction +This project is a Java fundamentals learning repository containing sample code for multiple modules, ranging from basic syntax to object-oriented programming. It is designed to help Java beginners understand and master the core concepts and practical techniques of the Java programming language. + +## Directory Structure +- `day01-helloworld-app`: Introduction to Java basic syntax, including example code for comments, variables, literals, and other fundamental concepts. +- `day02-basic`: Covers operators, data types, method definition and invocation, and control flow statements. +- `day03-flow-control`: Demonstrates the use of conditional branching statements (if-else, switch), loop statements (for, while, do-while), and control keywords (break, continue). +- `day04-array`: Basic array operations, including creation and traversal of one-dimensional and two-dimensional arrays, as well as implementation of common algorithms. +- `day05-oop`: Fundamentals of object-oriented programming, including class and object definition, encapsulation, constructors, the `this` keyword, and the `static` keyword. +- `day06-oop`: Deeper exploration of OOP concepts such as inheritance, method overriding, and polymorphism. +- `day07-oop`: Advanced OOP features including abstract classes, interfaces, enum types, the `final` keyword, and the singleton pattern. +- `day08-oop`: Modern Java features such as the collections framework, GUI programming, inner classes, Lambda expressions, and method references. +- `itheima-employee-sys`: A simple employee management system demonstrating the comprehensive application of Java in real-world scenarios. + +## Installation and Execution +Ensure that a Java Development Environment (JDK) is installed on your computer. You can import the project into an IDE (such as IntelliJ IDEA) or compile and run Java programs via the command line. + +### Using an IDE +1. Open IntelliJ IDEA. +2. Select "Open" and navigate to the project directory. +3. Choose the appropriate module (e.g., `day01-helloworld-app`). +4. Right-click on the `main` method in any Java file and select "Run" to execute the program. + +### Using the Command Line +1. Open a command-line tool. +2. Navigate to the project source directory (e.g., `cd javaseaiproject/day01-helloworld-app/src`). +3. Compile the Java file: `javac com/zl/hello/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..10d3344 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Java基础学习项目 + +## 简介 +本项目是一个Java基础学习项目,包含了从基础语法到面向对象编程等多个模块的示例代码。该项目旨在帮助Java初学者理解和掌握Java编程语言的核心概念和实践技巧。 + +## 目录结构 +- `day01-helloworld-app`: Java基础语法入门,包含注释、变量、字面量等基本概念的示例代码。 +- `day02-basic`: 涉及运算符、数据类型、方法定义与调用、流程控制语句等基础语法。 +- `day03-flow-control`: 展示了条件分支语句(if-else, switch)、循环语句(for, while, do-while)及其控制(break, continue)的使用。 +- `day04-array`: 数组的基本操作,包括一维数组和二维数组的创建、遍历及常见算法实现。 +- `day05-oop`: 面向对象编程的基础,包括类与对象的定义、封装、构造方法、this关键字、static关键字等特性。 +- `day06-oop`: 进一步深入面向对象编程,如继承、方法重写、多态性等概念。 +- `day07-oop`: 探索抽象类、接口、枚举类型、final关键字、单例模式等高级面向对象特性。 +- `day08-oop`: 包含集合框架、GUI编程、内部类、Lambda表达式、方法引用等现代Java特性。 +- `itheima-employee-sys`: 一个简单的员工管理系统,演示了Java在实际应用中的综合运用。 + +## 安装与运行 +确保您的计算机上已安装Java开发环境(JDK)。您可以使用IDE(如IntelliJ IDEA)导入项目,或通过命令行编译并运行Java程序。 + +### 使用IDE +1. 打开IntelliJ IDEA。 +2. 选择 "Open" 并导航至项目目录。 +3. 选择相应的模块(如 `day01-helloworld-app`)。 +4. 右键点击任意Java文件中的main方法,选择 "Run" 运行程序。 + +### 使用命令行 +1. 打开命令行工具。 +2. 导航至项目源码目录(例如 `cd javaseaiproject/day01-helloworld-app/src`)。 +3. 编译Java文件:`javac com/zl/hello/ \ No newline at end of file -- Gitee