This commit is contained in:
2025-09-12 11:09:13 +08:00
parent 240ecb0fff
commit 4264c76aa8
6 changed files with 203 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package JavaBasicStudy;
public class HelloJava {
enum Color {
RED,ORANGE,YELLOW,GREEN,BLUE,BLACK,WHITE
}
public static void main(String[] args) {
HelloJava helloJava = new HelloJava();
helloJava.testHuHangTao();
}
public void testHuHangTao(){
SWPUStudent HuHangTao = new SWPUStudent("胡航滔", 20, "2024520541", "网络工程", 3.8, "hht@stu.swpu.edu.cn", "12345678901", "四川省广安市", "");
HuHangTao.ShowInfo();
HuHangTao.setGpa(4.5);
HuHangTao.setEmail(HuHangTao.getStudentID() + "@stu.swpu.edu.cn");
HuHangTao.setPhoneNumber("18782345678");
HuHangTao.ShowInfo();
}
}