From 476157cd3fcf48531ad2a50d7b82e5f33b2c67a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E6=80=9D=E8=B1=AA?= <1437200870@qq.com>
Date: Thu, 8 Aug 2024 09:33:47 +0800
Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E8=80=8319=E5=8D=95=E5=85=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.gitignore | 38 ++++++++++++++
pom.xml | 17 ++++++
src/main/java/com/bwie/Main.java | 26 ++++++++++
src/main/java/com/bwie/domain/Student.java | 52 +++++++++++++++++++
.../java/com/bwie/service/StudentService.java | 10 ++++
5 files changed, 143 insertions(+)
create mode 100644 .gitignore
create mode 100644 pom.xml
create mode 100644 src/main/java/com/bwie/Main.java
create mode 100644 src/main/java/com/bwie/domain/Student.java
create mode 100644 src/main/java/com/bwie/service/StudentService.java
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/pom.xml b/pom.xml
new file mode 100644
index 0000000..0b619fe
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,17 @@
+
+
+ 4.0.0
+
+ com.bwie
+ day-19
+ 1.0-SNAPSHOT
+
+
+ 17
+ 17
+ UTF-8
+
+
+
diff --git a/src/main/java/com/bwie/Main.java b/src/main/java/com/bwie/Main.java
new file mode 100644
index 0000000..dc09983
--- /dev/null
+++ b/src/main/java/com/bwie/Main.java
@@ -0,0 +1,26 @@
+package com.bwie;
+
+import com.bwie.domain.Student;
+
+import java.util.ArrayList;
+
+public class Main {
+ public static void main(String[] args) {
+ Student student1 = new Student(1, "规定火锅", "12", "82.11");
+ Student student2 = new Student(2, "凡已经", "15", "58.7");
+ Student student3 = new Student(3, "一天", "12", "35.7");
+ Student student4 = new Student(4, "交易合同", "", "101");
+ Student student5 = new Student(5, "今天", "", "85.45");
+
+ ArrayList students = new ArrayList<>();
+ students.add(student1);
+ students.add(student2);
+ students.add(student3);
+ students.add(student5);
+ students.add(student4);
+
+ for (Student student : students) {
+ System.out.println(student.getId()+student.getName()+student.getKm()+student.getScore());
+ }
+ }
+}
diff --git a/src/main/java/com/bwie/domain/Student.java b/src/main/java/com/bwie/domain/Student.java
new file mode 100644
index 0000000..a67a697
--- /dev/null
+++ b/src/main/java/com/bwie/domain/Student.java
@@ -0,0 +1,52 @@
+package com.bwie.domain;
+
+public class Student {
+
+
+ private Integer id;
+ private String name;
+ private String km;
+ private String score;
+
+ public Student() {
+ }
+
+ public Student(Integer id, String name, String km, String score) {
+ this.id = id;
+ this.name = name;
+ this.km = km;
+ this.score = score;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getKm() {
+ return km;
+ }
+
+ public void setKm(String km) {
+ this.km = km;
+ }
+
+ public String getScore() {
+ return score;
+ }
+
+ public void setScore(String score) {
+ this.score = score;
+ }
+}
diff --git a/src/main/java/com/bwie/service/StudentService.java b/src/main/java/com/bwie/service/StudentService.java
new file mode 100644
index 0000000..ab5fa84
--- /dev/null
+++ b/src/main/java/com/bwie/service/StudentService.java
@@ -0,0 +1,10 @@
+package com.bwie.service;
+
+import com.bwie.domain.Student;
+
+public class StudentService {
+
+
+
+
+}