diff --git "a/work/com/java/minxi/java_20240418/java_2301_\345\274\240\344\270\211_2344000000/MainTest.java" "b/work/com/java/minxi/java_20240418/java_2301_\345\274\240\344\270\211_2344000000/MainTest.java" deleted file mode 100644 index d9f5f9c1b0f2559ab440912e809dcfd80b87ef07..0000000000000000000000000000000000000000 --- "a/work/com/java/minxi/java_20240418/java_2301_\345\274\240\344\270\211_2344000000/MainTest.java" +++ /dev/null @@ -1,4 +0,0 @@ -package com.java.minxi.java_20240418.java_2301_张三_2344000000; - -public class MainTest { -} diff --git "a/work/com/java/minxi/java_20240418/java_2301_\350\213\217\351\271\212\346\235\203_2344310141/Method.java" "b/work/com/java/minxi/java_20240418/java_2301_\350\213\217\351\271\212\346\235\203_2344310141/Method.java" new file mode 100644 index 0000000000000000000000000000000000000000..8222717edb7bfaf8e872629d4c26b15182e197c6 --- /dev/null +++ "b/work/com/java/minxi/java_20240418/java_2301_\350\213\217\351\271\212\346\235\203_2344310141/Method.java" @@ -0,0 +1,24 @@ +package com.java.minxi.java_20240418.java_2301_苏鹊权_2344310141; + +public class Method { + int id; + String name; + int age; + String sex; + + public void running(){ + System.out.println(name+"正在跑步"); + } + + public void eat(){ + System.out.println(name+"正在吃饭"); + } + + public void sleep(){ + System.out.println(name+"正在睡觉"); + } + + public void SJ() { + System.out.println(name + "正在睡觉"); + } +} diff --git "a/work/com/java/minxi/java_20240418/java_2301_\350\213\217\351\271\212\346\235\203_2344310141/Student.java" "b/work/com/java/minxi/java_20240418/java_2301_\350\213\217\351\271\212\346\235\203_2344310141/Student.java" new file mode 100644 index 0000000000000000000000000000000000000000..7a4f9e13604ba4aede14781d2b1c4b8f50a914d5 --- /dev/null +++ "b/work/com/java/minxi/java_20240418/java_2301_\350\213\217\351\271\212\346\235\203_2344310141/Student.java" @@ -0,0 +1,27 @@ +package com.java.minxi.java_20240418.java_2301_苏鹊权_2344310141; + +public class Student { + public static void main(String[] args) { + Student object1=new Student(); + object1.id=1; + object1.name="张三"; + object1.age=21; + object1.sex="男"; + + Student object2=new Student(); + object2.id=2; + object2.name="李四"; + object2.age=25; + object2.sex="男"; + + Student object3=new Student(); + object3.id=3; + object3.name="王丽"; + object3.age=19; + object3.sex="女"; + + object2.running(); + object1.eat(); + object3.sleep(); + } +}