摘要:
public class TextP { public static void main(String[] args) { Person p1 = new Person("小红",18);//声明,并附初始值 System.out.println(p1.age+"岁的"+p1.name+"用"+p1 阅读全文
摘要:
private static void random() { Random random = new Random(System. currentTimeMillis());//使用当前时间作为种子数字来进行创建Random类型的对象。 int k = random.nextInt();//生成随机 阅读全文