摘要:
this this(id,name);//调用另一个方法只能放在第一行 this id = id; this name = name; public Student(int id, String name, char gender) { this.id = id; this.name = name; 阅读全文
摘要:
default switch(num): case 1:语句;break; case 2:语句;break; case 3:语句;break; default:语句;break; Random 随机数 Random r = new Random();r.nextInt(9000)+1000;//4位 阅读全文