commit 95901e59480cde79c7a4571da9883bbf55d31670
Author: liyuxin <1579178744@qq.com>
Date: Thu Jul 25 09:42:33 2024 +0700
提交
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5ff6309
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,38 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..aa00ffa
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..132404b
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..9fbc787
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,17 @@
+
+
+ 4.0.0
+
+ com.bwie
+ test06-6
+ 1.0-SNAPSHOT
+
+
+ 8
+ 8
+ UTF-8
+
+
+
diff --git a/代码/H6_test07/.gitignore b/代码/H6_test07/.gitignore
new file mode 100644
index 0000000..5ff6309
--- /dev/null
+++ b/代码/H6_test07/.gitignore
@@ -0,0 +1,38 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/代码/H6_test07/.idea/.gitignore b/代码/H6_test07/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/代码/H6_test07/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/代码/H6_test07/.idea/encodings.xml b/代码/H6_test07/.idea/encodings.xml
new file mode 100644
index 0000000..aa00ffa
--- /dev/null
+++ b/代码/H6_test07/.idea/encodings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/代码/H6_test07/.idea/misc.xml b/代码/H6_test07/.idea/misc.xml
new file mode 100644
index 0000000..132404b
--- /dev/null
+++ b/代码/H6_test07/.idea/misc.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/代码/H6_test07/.idea/uiDesigner.xml b/代码/H6_test07/.idea/uiDesigner.xml
new file mode 100644
index 0000000..2b63946
--- /dev/null
+++ b/代码/H6_test07/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/代码/H6_test07/.idea/vcs.xml b/代码/H6_test07/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/代码/H6_test07/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/代码/H6_test07/pom.xml b/代码/H6_test07/pom.xml
new file mode 100644
index 0000000..fb3db72
--- /dev/null
+++ b/代码/H6_test07/pom.xml
@@ -0,0 +1,28 @@
+
+
+ 4.0.0
+
+ com.bwie
+ H6_test07
+ 1.0-SNAPSHOT
+
+
+ 8
+ 8
+ UTF-8
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ 3.2.6
+
+
+
+
+
+
diff --git a/代码/H6_test07/src/main/java/com/bwie/admain/Student.java b/代码/H6_test07/src/main/java/com/bwie/admain/Student.java
new file mode 100644
index 0000000..933ce25
--- /dev/null
+++ b/代码/H6_test07/src/main/java/com/bwie/admain/Student.java
@@ -0,0 +1,58 @@
+package com.bwie.admain;
+
+
+
+
+
+
+public class Student {
+
+ private String stuName;
+ private String stuAge;
+ private String stuSex;
+ private String stuScore;
+
+
+
+ public String getStuName() {
+ return stuName;
+ }
+
+ public void setStuName(String stuName) {
+ this.stuName = stuName;
+ }
+
+ public String getStuAge() {
+ return stuAge;
+ }
+
+ public void setStuAge(String stuAge) {
+ this.stuAge = stuAge;
+ }
+
+ public String getStuSex() {
+ return stuSex;
+ }
+
+ public void setStuSex(String stuSex) {
+ this.stuSex = stuSex;
+ }
+
+ public String getStuScore() {
+ return stuScore;
+ }
+
+ public void setStuScore(String stuScore) {
+ this.stuScore = stuScore;
+ }
+
+ public Student() {
+ }
+
+ public Student(String stuName, String stuAge, String stuSex, String stuScore) {
+ this.stuName = stuName;
+ this.stuAge = stuAge;
+ this.stuSex = stuSex;
+ this.stuScore = stuScore;
+ }
+}
diff --git a/代码/H6_test07/src/main/java/com/bwie/service/StudentService.java b/代码/H6_test07/src/main/java/com/bwie/service/StudentService.java
new file mode 100644
index 0000000..b928361
--- /dev/null
+++ b/代码/H6_test07/src/main/java/com/bwie/service/StudentService.java
@@ -0,0 +1,33 @@
+package com.bwie.service;
+
+import com.bwie.admain.Student;
+
+import java.util.HashMap;
+
+public class StudentService {
+
+ public static void main(String[] args) {
+ // 创建HashMap对象
+ HashMap studentMap = new HashMap<>();
+
+ Student student1 = new Student("张三", "20", "Female", "85");
+ Student student2 = new Student("李四", "21", "Male", "78");
+
+ studentMap.put(1, student1);
+ studentMap.put(2, student2);
+
+ System.out.println("遍历方式一");
+ for (Integer key : studentMap.keySet()) {
+ Student student = studentMap.get(key);
+ System.out.println("编号:" + key + ", 学生信息:" + student);
+ }
+ System.out.println();
+
+
+ System.out.println("遍历方式二");
+ for (Student student : studentMap.values()) {
+ System.out.println("学生姓名:" + student.getStuName() + ", 学生信息:" + student);
+ }
+ }
+
+}
diff --git a/理论/屏幕截图 2024-07-25 092749.png b/理论/屏幕截图 2024-07-25 092749.png
new file mode 100644
index 0000000..822fef2
Binary files /dev/null and b/理论/屏幕截图 2024-07-25 092749.png differ
diff --git a/理论/屏幕截图 2024-07-25 092807.png b/理论/屏幕截图 2024-07-25 092807.png
new file mode 100644
index 0000000..e9a9282
Binary files /dev/null and b/理论/屏幕截图 2024-07-25 092807.png differ