From ad83161d63c8850d11421f5ea707b127e137c423 Mon Sep 17 00:00:00 2001 From: zyx <1029606625@qq.com> Date: Wed, 21 Sep 2022 09:26:03 +0800 Subject: [PATCH] =?UTF-8?q?2022/09/21=209:24=20=E7=AC=AC=E4=BA=94=E6=AC=A1?= =?UTF-8?q?=E8=AF=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/modules.xml | 1 + .idea/uiDesigner.xml | 124 ++++++++++++++++++ Week4/Week4.iml | 11 ++ Week4/src/Class5/Employee.java | 64 +++++++++ Week4/src/Class5/work/Rectangle.java | 28 ++++ Week4/src/Class5/work/RectangleTest.java | 13 ++ Week4/src/Class5/work/Student.java | 30 +++++ Week4/src/Class5/work/StudentTest.java | 12 ++ out/production/Week4/Class5/Employee.class | Bin 0 -> 1812 bytes .../Week4/Class5/work/Rectangle.class | Bin 0 -> 813 bytes .../Week4/Class5/work/RectangleTest.class | Bin 0 -> 1133 bytes .../Week4/Class5/work/Student.class | Bin 0 -> 1100 bytes .../Week4/Class5/work/StudentTest.class | Bin 0 -> 605 bytes 13 files changed, 283 insertions(+) create mode 100644 .idea/uiDesigner.xml create mode 100644 Week4/Week4.iml create mode 100644 Week4/src/Class5/Employee.java create mode 100644 Week4/src/Class5/work/Rectangle.java create mode 100644 Week4/src/Class5/work/RectangleTest.java create mode 100644 Week4/src/Class5/work/Student.java create mode 100644 Week4/src/Class5/work/StudentTest.java create mode 100644 out/production/Week4/Class5/Employee.class create mode 100644 out/production/Week4/Class5/work/Rectangle.class create mode 100644 out/production/Week4/Class5/work/RectangleTest.class create mode 100644 out/production/Week4/Class5/work/Student.class create mode 100644 out/production/Week4/Class5/work/StudentTest.class diff --git a/.idea/modules.xml b/.idea/modules.xml index 3aa439a..1687a9f 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -4,6 +4,7 @@ + diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Week4/Week4.iml b/Week4/Week4.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/Week4/Week4.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Week4/src/Class5/Employee.java b/Week4/src/Class5/Employee.java new file mode 100644 index 0000000..15ede66 --- /dev/null +++ b/Week4/src/Class5/Employee.java @@ -0,0 +1,64 @@ +package Class5; + +/** + * @author : 张宇轩 + * @createTime : 2022/9/21 - 9:10 + */ +public class Employee { + private String id; + private String name; + private String department; + private Float baseSalary; + + public Employee() { + } + + public Employee(String id, String name, String department, Float baseSalary) { + this.id = id; + this.name = name; + this.department = department; + this.baseSalary = baseSalary; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDepartment() { + return department; + } + + public void setDepartment(String department) { + this.department = department; + } + + public Float getBaseSalary() { + return baseSalary; + } + + public void setBaseSalary(Float baseSalary) { + this.baseSalary = baseSalary; + } + + @Override + public String toString() { + return "Class5.Employee{" + + "id='" + id + '\'' + + ", name='" + name + '\'' + + ", department='" + department + '\'' + + ", baseSalary=" + baseSalary + + '}'; + } +} diff --git a/Week4/src/Class5/work/Rectangle.java b/Week4/src/Class5/work/Rectangle.java new file mode 100644 index 0000000..510acd3 --- /dev/null +++ b/Week4/src/Class5/work/Rectangle.java @@ -0,0 +1,28 @@ +package Class5.work; + +/** + * @author : 张宇轩 + * @createTime : 2022/9/21 - 9:17 + */ +public class Rectangle { + private Double length; + private Double width; + + public Rectangle() { + this.length = 1.0; + this.width = 1.0; + } + + public Rectangle(Double length, Double width) { + this.length = length; + this.width = width; + } + + public double calculateArea(){ + return length*width; + } + + public double calculatePerimeter(){ + return (length+width)*2; + } +} diff --git a/Week4/src/Class5/work/RectangleTest.java b/Week4/src/Class5/work/RectangleTest.java new file mode 100644 index 0000000..3fd15af --- /dev/null +++ b/Week4/src/Class5/work/RectangleTest.java @@ -0,0 +1,13 @@ +package Class5.work; + +/** + * @author : 张宇轩 + * @createTime : 2022/9/21 - 9:20 + */ +public class RectangleTest { + public static void main(String[] args) { + Rectangle rectangle = new Rectangle(3.0,4.0); + System.out.println("矩形的面积:" + rectangle.calculateArea()); + System.out.println("矩形的周长:" + rectangle.calculatePerimeter()); + } +} diff --git a/Week4/src/Class5/work/Student.java b/Week4/src/Class5/work/Student.java new file mode 100644 index 0000000..4b100d9 --- /dev/null +++ b/Week4/src/Class5/work/Student.java @@ -0,0 +1,30 @@ +package Class5.work; + +/** + * @author : 张宇轩 + * @createTime : 2022/9/21 - 9:14 + */ +public class Student { + private String name; + private String phoneNumber; + private String studentNumber; + + public Student(String name, String phoneNumber, String studentNumber) { + this.name = name; + this.phoneNumber = phoneNumber; + this.studentNumber = studentNumber; + } + + @Override + public String toString() { + return "Student{" + + "name='" + name + '\'' + + ", phoneNumber='" + phoneNumber + '\'' + + ", studentNumber='" + studentNumber + '\'' + + '}'; + } + + public void displayStudent(){ + System.out.println(this.toString()); + } +} diff --git a/Week4/src/Class5/work/StudentTest.java b/Week4/src/Class5/work/StudentTest.java new file mode 100644 index 0000000..24b5f52 --- /dev/null +++ b/Week4/src/Class5/work/StudentTest.java @@ -0,0 +1,12 @@ +package Class5.work; + +/** + * @author : 张宇轩 + * @createTime : 2022/9/21 - 9:17 + */ +public class StudentTest { + public static void main(String[] args) { + Student admin = new Student("admin", "123456", "123456"); + admin.displayStudent(); + } +} diff --git a/out/production/Week4/Class5/Employee.class b/out/production/Week4/Class5/Employee.class new file mode 100644 index 0000000000000000000000000000000000000000..de75de76569f78f59509667704ae524fe0812e84 GIT binary patch literal 1812 zcmb7@TTc^F5Xb-9ZZDK=Ddk>4i-IjnOHn{Ys28dv8Uha(5+Ap8gG;uTw2KKbCVnJM zY)Lfn1NfngGkcbHyKGH-nK@_9nK{3?oZo+b`~t9vatz}rjv$G377tiFWU&#!W(;8z zqu65oh{fY5oe?VyGGrxC~h#fazZi6jVi?$J22|{;YF>Y zx87+LlPsx&#;InWXf1>Hj#0Kg7;TPQHnnzptN6OsG#i(?PI2GnT#q@3|7j73OcgrQ ztv8hRWNzhV3_5O$<0+pv**!w;hjwiubW^P2WP9Z*RGdx*_H@4Is@=rE)7RBwFZZoU zH$k62YBfX&s3FIVi`J>WZ*WoL*9BYSb}E>~oPrc46il+1Vlj;w2{Yby?_C&XRc}#A zMCsSABYiTerL2PIc){YOglIm)b5Y7lNaQp9*i5>P7X5Z|T!%V|5pDX|Ccp#j3Y-jj=EYdd`r(Y%`z{R6gfa_;# zDxs~Zilj#&ag9l)X}3XIA{|n%Abqp1-69zycOXvT5}2ozA}(P8w`s=#?vUgFU+89t zbeaRGs~rT?dG(ED-_dCh4IpM zGR&0bi9pa^aY8b2WGH<>QzR|Y`HsL>x)cDX6Sj@BzNy^BJ;(VO-R394b{c(bQH*(l zTd*Tci(5U+u!AXK$rmK(1Gi7iPrGkYz+b78DS9m(N3&OY9G(Y(NBcm zUm=o;b}^#TypT#}yNIPmg(288D8eB33~^xyb&*JZCYLV8yeVzFQab8=oB}-@z}jEC Ci!R9k literal 0 HcmV?d00001 diff --git a/out/production/Week4/Class5/work/Rectangle.class b/out/production/Week4/Class5/work/Rectangle.class new file mode 100644 index 0000000000000000000000000000000000000000..150b3583ccc33dfe9764db3e5ef5f92db8d10d17 GIT binary patch literal 813 zcmZvZUr*FP6vfYMOV?e>wk!n{{{a4DS&aLlFKUQ}jW2G*DA~lv+3pC1vQ4@zd@N%k zYJBhm_@RtvW}70ZZ8Fojz4v#{z4QCe&tCwZ;9(ODtTk~Hw;H&H+j_a9kL%7$Cg`V* zjXE|3oLEf`vm=4_;8>o?UMwevy?&C9V)a~L?mQanpU#VD5@ovrR%d%CVDBYkCEyLB ziF%u#j#PReS)d_FDC40_BYiG{c6Jm^1y%=pv7Any_Rf>^r1xHh8KsQMR;Q|6jcDNo z(!)HKnR=BfY3%f=T1MZgG&)t8N(Gu9k~|I7>qz@*m2!`Dmo662s^hMUd${kSiFp^U zULIgYVEMm31^mka?T?P>|4L{!GlBYBv~?juk>*4E-2Ta84y>PZWc4A5sy5E>Gv>azVvKT#8~?!XpYUE4acC88u3V zbCaPV-8ak7n6(xJLrdN$iHB}+Uf7TMyh%trZxy&X%WXs2+hC*f%&0JQ=CdZRR7Ug{ zmi=6RBnl2MEmDxEI2kHg%EJz%uQEJJ*C^FbA5ph`vKIP-t+#R$=JW#<=I%|FaI?+W|499Ss5SjcMVJZhaSVw3sfrf7g zClH}^4bl8p#MYtCt)VHdRna_9#i1%%s%Wj^aKIP$eQmqGJrQvk|G7Q Y`=mI5lVl}m+PiUzBr%*OJA^a;0du4s2mk;8 literal 0 HcmV?d00001 diff --git a/out/production/Week4/Class5/work/Student.class b/out/production/Week4/Class5/work/Student.class new file mode 100644 index 0000000000000000000000000000000000000000..a69986b5d250f626dd2a08e31f385f081acd83f3 GIT binary patch literal 1100 zcma)4Yi|-k6g{(07MA4=tq)XcRbUInS5<85hm!b-s0oI|j|*(tt;;T97foaQPillF zn)n0!QN}y7ON&B`ndHvQeVsFB?$2M}egJrg0|gmu#gN7=Zf4_J#-@F=#}FSKJGSv+ zGVB>+hJ@=)28Qj;?~#4eHoa#I&B}7||9Glhf^Rtkf={*0InZmpX9+@1U$?sY*yQ)X z8TO7%m!Z&ZS-R`)Hr_kqw?tRaBEC`2@wqePE7fHR49S7%jx7B&s9^|II18oYOvZiV zxyg~$Ah^R7QL&DaiY#&}^4t`VW7zmxtiy?E4Y)|jp!frq^`NZMZ|!pPh~8K$E$Der zX2{e^?xLnV{~E5#c&y?HnlhfM*uy?UZpC{U(ibdV_D+nx#}Ls+Bf}mr)K~n;vLXR( zlCD^3{VTix)j4%NV@S$569O#wDw|H@6%CC?@*Db)`sD<-Kiv%Sh$mS#)ve;!#U{;X zhGskjiEBHh!# literal 0 HcmV?d00001 diff --git a/out/production/Week4/Class5/work/StudentTest.class b/out/production/Week4/Class5/work/StudentTest.class new file mode 100644 index 0000000000000000000000000000000000000000..64c7c5acdf9cd09e147fdfd1feaa136d686c5b03 GIT binary patch literal 605 zcma)3O;5r=6r2T0q1J-sL-Cs%YGR{;iNSaw@zlrxLSj5Ew86zvOj|VmEH9F1;t%jg z8Q%g4CUUTcx1HJdX69wTzTZCqR8iKD!iI`c3i%W^HN>zb%eIOg6}t?{OW}*?iXmP( z=rAN2BgbXP*ur;j#>1`~w0YMf#t}khnTaff3db2xldqiDS{_gW1M(%7l zB7F4t%RDg3Q0bNA7Xy=_sjd*R=wx&%hZC^Z>9tNZIVDxB(!V}yfPoC5G_qJDMh-Wj zkQ|WvK9fnp!MA-Rw;5TA}2