摘要: 实例化同名对象时赋值 public class User { int id; String name; String pwd; public User(){} public User(int id ,String name){ super(); this.id=id; this.name=name; 阅读全文
posted @ 2022-03-21 13:00 Theext 阅读(38) 评论(0) 推荐(0)
摘要: 实例一: public class people { public static void main(String[] args) { person p1 = new person();//实例化一个人,p1 p1.name = "张三"; p1.age = 24; p1.hight = 170; 阅读全文
posted @ 2022-03-21 00:18 Theext 阅读(63) 评论(0) 推荐(0)
摘要: 九九乘法表 public class jiujiu { public static void main(String[] args){ for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ System.out.print(j+"*"+i+"="+(i*j<10 阅读全文
posted @ 2022-03-21 00:06 Theext 阅读(40) 评论(0) 推荐(0)