g6_day19rk

master
chaiyapeng 2024-08-08 09:00:33 +08:00
commit 44580b3e2d
7 changed files with 136 additions and 0 deletions

38
.gitignore vendored 100644
View File

@ -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

8
.idea/.gitignore vendored 100644
View File

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
</component>
</project>

14
.idea/misc.xml 100644
View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

17
pom.xml 100644
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.bwie</groupId>
<artifactId>bwei-g6_day19rk</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

View File

@ -0,0 +1,11 @@
package com.bwie;
/**
* @Authorchaiyapeng
* @Packagecom.bwie
* @Projectbwei-g6_day19rk
* @nameStudent
* @Date2024/8/8 8:54
*/
public class Student {
}

View File

@ -0,0 +1,41 @@
package com.bwie;
import java.util.List;
/**
* @Authorchaiyapeng
* @Packagecom.bwie
* @Projectbwei-g6_day19rk
* @nameTest
* @Date2024/8/8 8:36
*/
public class Test {
public static void main(String[] args) {
//添加值
int id = 1;
String name = "张三";
String subject = "语文";
double mark = 100;
System.out.println(id+","+name+","+subject+","+mark);
int id2 = 2;
String name2 = "李四";
String subject2 = "数学";
double mark2 = 90;
System.out.println(id2+","+name2+","+subject2+","+mark2);
int id3 = 3;
String name3 = "王五";
String subject3 = "英语";
double mark3 = 100;
System.out.println(id3+","+name3+","+subject3+","+mark3);
int id4 = 4;
String name4 = "赵六";
String subject4 = "历史";
double mark4 = 90;
System.out.println(id4+","+name4+","+subject4+","+mark4);
int id5 = 5;
String name5 = "韩七";
String subject5 = "地理";
double mark5 = 100;
System.out.println(id5+","+name5+","+subject5+","+mark5);
}
}