commit 4dcfee7b35c05035d3b6d41e4bf5236eda45ad6b Author: Yueng <14617246+YuengMeYuuer@user.noreply.gitee.com> Date: Thu Aug 8 09:39:45 2024 +0800 chushihua 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/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..94a25f7 --- /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..416adef --- /dev/null +++ b/pom.xml @@ -0,0 +1,17 @@ + + + 4.0.0 + + org.example + day-08-08 + 1.0-SNAPSHOT + + + 8 + 8 + UTF-8 + + + \ No newline at end of file diff --git a/rokao/day_08-08/.gitignore b/rokao/day_08-08/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/rokao/day_08-08/.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/rokao/day_08-08/.idea/$PROJECT_FILE$ b/rokao/day_08-08/.idea/$PROJECT_FILE$ new file mode 100644 index 0000000..58b7e3e --- /dev/null +++ b/rokao/day_08-08/.idea/$PROJECT_FILE$ @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/rokao/day_08-08/.idea/.gitignore b/rokao/day_08-08/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/rokao/day_08-08/.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/rokao/day_08-08/.idea/encodings.xml b/rokao/day_08-08/.idea/encodings.xml new file mode 100644 index 0000000..63574ec --- /dev/null +++ b/rokao/day_08-08/.idea/encodings.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/rokao/day_08-08/.idea/inspectionProfiles/Project_Default.xml b/rokao/day_08-08/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..8d66637 --- /dev/null +++ b/rokao/day_08-08/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/rokao/day_08-08/.idea/misc.xml b/rokao/day_08-08/.idea/misc.xml new file mode 100644 index 0000000..eefaeae --- /dev/null +++ b/rokao/day_08-08/.idea/misc.xml @@ -0,0 +1,23 @@ + + + + { + "isMigrated": true +} + + + + + + + + + + + \ No newline at end of file diff --git a/rokao/day_08-08/.idea/qaplug_profiles.xml b/rokao/day_08-08/.idea/qaplug_profiles.xml new file mode 100644 index 0000000..9a7566c --- /dev/null +++ b/rokao/day_08-08/.idea/qaplug_profiles.xml @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/rokao/day_08-08/pom.xml b/rokao/day_08-08/pom.xml new file mode 100644 index 0000000..c40581b --- /dev/null +++ b/rokao/day_08-08/pom.xml @@ -0,0 +1,56 @@ + + + 4.0.0 + + com.bwie + day_08-08 + 1.0-SNAPSHOT + + + 17 + 17 + UTF-8 + + + + + org.projectlombok + lombok + true + + + + + + + + + + + + + + + + + org.apache.commons + commons-lang3 + 3.12.0 + + + org.slf4j + slf4j-api + 2.0.13 + + + org.projectlombok + lombok + 1.18.32 + provided + + + + + diff --git a/rokao/day_08-08/src/main/java/com/bwie/Main.java b/rokao/day_08-08/src/main/java/com/bwie/Main.java new file mode 100644 index 0000000..9a375da --- /dev/null +++ b/rokao/day_08-08/src/main/java/com/bwie/Main.java @@ -0,0 +1,14 @@ +package com.bwie; + +/** + * @Author:yang + * @Package:com.bwie + * @Project:Default (Template) Project + * @name:${NAME} + * @Date:2024/8/8 8:36 + */ +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} diff --git a/rokao/day_08-08/src/main/java/com/bwie/Stu.java b/rokao/day_08-08/src/main/java/com/bwie/Stu.java new file mode 100644 index 0000000..eb7240f --- /dev/null +++ b/rokao/day_08-08/src/main/java/com/bwie/Stu.java @@ -0,0 +1,14 @@ +package com.bwie; + +import lombok.Data; + +/** + * @Author:yang + * @Package:com.bwie + * @Project:day_08-08 + * @name:Stu + * @Date:2024/8/8 8:40 + */ +@Data +public class Stu { +} diff --git a/rokao/day_08-08/src/test/java/Stu.java b/rokao/day_08-08/src/test/java/Stu.java new file mode 100644 index 0000000..2738582 --- /dev/null +++ b/rokao/day_08-08/src/test/java/Stu.java @@ -0,0 +1,66 @@ +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +import java.util.ArrayList; + +/** + * @Author:yang + * @Package:PACKAGE_NAME + * @Project:day_08-08 + * @name:Stu + * @Date:2024/8/8 8:40 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +public class Stu { + private Integer id; + private String name; + private String kemu; + private Integer sum; + private Integer sum1; + + static { + + } + + + public static void main(String[] args) { + //集合 + ArrayList stus = new ArrayList<>(); + //对象 + Stu stu = new Stu(1, "张三", "语文", 22,22); + Stu stu1 = new Stu(2, "李四", "数学", 99,88); + Stu stu2 = new Stu(3, "王五", "英语", 80,100); + Stu stu3 = new Stu(4, "赵六", "英语", 80,100); + Stu stu4 = new Stu(5, "初七", "英语", 80,100); + String str1 = ""; + String str2 = ""; + String str3 = ""; + String str4 = ""; + String str5 = ""; + //总成绩 + double sum1 = (stu.getSum()+ stu.getSum1())/(double) (2 * 200)*100; + double sum2 = (stu1.getSum()+ stu1.getSum1())/(double) (2 * 200)*100; + double sum3 = (stu2.getSum()+ stu2.getSum1())/(double) (2 * 200)*100; + double sum4 = (stu3.getSum()+ stu3.getSum1())/(double) (2 * 200)*100; + double sum5 = (stu4.getSum()+ stu4.getSum1())/(double) (2 * 200)*100; + str1=stu.id+","+stu.name+","+stu.kemu+","+stu.sum+"总成绩"+sum1; + str2=stu1.id+","+stu1.name+","+stu1.kemu+","+stu1.sum+"总成绩"+sum2; + str3=stu2.id+","+stu2.name+","+stu2.kemu+","+stu2.sum+"总成绩"+sum3; + str4=stu3.id+","+stu3.name+","+stu3.kemu+","+stu3.sum+"总成绩"+sum4; + str5=stu4.id+","+stu4.name+","+stu4.kemu+","+stu4.sum+"总成绩"+sum5; + stus.add(str1); + stus.add(str2); + stus.add(str3); + stus.add(str4); + stus.add(str5); + stus.stream().map(stus1 -> { + System.out.println("stream打印得出:"+stus1); + return stus1; + }).toList(); + System.out.println("stream打印得出:"+stus); + } +} diff --git a/效果展示.doc b/效果展示.doc new file mode 100644 index 0000000..d3cd388 Binary files /dev/null and b/效果展示.doc differ