package lw;
class Computer{ String pingpai; String xinhao; String yanse; }class Student{ int id; String name; Computer C;}public class LIANXI {public static void main(String[] args) { Computer c= new Computer(); c.pingpai="华硕"; c.xinhao="天选2"; c.yanse="太空灰"; Student s=new Student(); s.id=41; s.name="罗威"; s.C=c; Student H=new Student(); H.id=40; H.name="梁日华"; System.out.println(s.name+"去使用"+s.C.xinhao); }}
2021-05-11
最新推荐文章于 2021-11-05 18:47:52 发布