更新文件结构

This commit is contained in:
JRNitre 2024-04-19 08:28:24 +08:00
parent 889a8bdaf8
commit 6aaa1e35c4
14 changed files with 19 additions and 98 deletions

8
.idea/.gitignore generated vendored
View File

@ -1,8 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

9
.idea/modules.xml generated
View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/JavaTemplate_Project.iml" filepath="$PROJECT_DIR$/JavaTemplate_Project.iml" />
<module fileurl="file://$PROJECT_DIR$/application/application.iml" filepath="$PROJECT_DIR$/application/application.iml" />
</modules>
</component>
</project>

View File

@ -0,0 +1,3 @@
# 默认忽略的文件
/shelf/
/workspace.xml

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Application.iml" filepath="$PROJECT_DIR$/Application.iml" />
</modules>
</component>
</project>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>

View File

@ -0,0 +1,7 @@
package learn_20240419;
public class Main {
public static void main (String[] args){
System.out.println("test");
}
}

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -1,15 +0,0 @@
//TIP <b>运行</b>代码请按 <shortcut actionId="Run"/>
// 点击装订区域中的 <icon src="AllIcons.Actions.Execute"/> 图标
public class Main {
public static void main(String[] args) {
//TIP 当文本光标位于高亮显示的文本处时按 <shortcut actionId="ShowIntentionActions"/>
// 查看 IntelliJ IDEA 建议如何修正
System.out.printf("Hello and welcome!");
for (int i = 1; i <= 5; i++) {
//TIP <shortcut actionId="Debug"/> 开始调试代码我们已经设置了一个 <icon src="AllIcons.Debugger.Db_set_breakpoint"/> 断点
// 但您始终可以通过按 <shortcut actionId="ToggleLineBreakpoint"/> 添加更多断点
System.out.println("i = " + i);
}
}
}

View File

@ -1,15 +0,0 @@
/*
* Code by 20240418
* Java 面向对象程序设计课程
* Design by JRNitre
* */
package app_20240418;
public class Main {
public static void main (String[] args){
student s1 = new student("Dog meat",10,"Computer");
s1.getStudentInfo();
}
}

View File

@ -1,18 +0,0 @@
package app_20240418;
public class person {
private String name;
private int age;
public person (String name, int age){
this.name = name;
this.age = age;
}
public String getPerson_name(){
return this.name;
}
public int getPersion_age(){
return this.age;
}
}

View File

@ -1,21 +0,0 @@
package app_20240418;
public class student extends person{
private String dep;
public student(String name, int age, String dep){
// 调用父类构造函数进行构造
super(name,age);
this.dep = dep;
}
public void setStudent_dep (String dep){
this.dep = dep;
}
public void getStudentInfo(){
System.out.println(getPerson_name());
System.out.println(getPersion_age());
System.out.println(this.dep);
}
}