更新文件结构
This commit is contained in:
parent
889a8bdaf8
commit
6aaa1e35c4
8
.idea/.gitignore
generated
vendored
8
.idea/.gitignore
generated
vendored
@ -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
9
.idea/modules.xml
generated
@ -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>
|
|
3
01_Intellij_Java_universal_20240419/untitled/.idea/.gitignore
generated
vendored
Normal file
3
01_Intellij_Java_universal_20240419/untitled/.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# 默认忽略的文件
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
8
01_Intellij_Java_universal_20240419/untitled/.idea/modules.xml
generated
Normal file
8
01_Intellij_Java_universal_20240419/untitled/.idea/modules.xml
generated
Normal 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>
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -0,0 +1,7 @@
|
|||||||
|
package learn_20240419;
|
||||||
|
|
||||||
|
public class Main {
|
||||||
|
public static void main (String[] args){
|
||||||
|
System.out.println("test");
|
||||||
|
}
|
||||||
|
}
|
@ -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>
|
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -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();
|
|
||||||
}
|
|
||||||
}
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user