class test{ String name; static String schoolName; public static void main(String args[]) { test s1=new test(); s1.name="张三"; s1.schoolName="gdgm"; test s2=new test(); s2.name="Tom"; s2.schoolName="Tsinghua"; System.out.println(s1.name); System.out.println(s1.schoolName); }}
添加回答
举报
0/150
提交
取消