• 2021-04-14
    阅读下面的代码,输出结果是
    publicstaticvoidmain(String[]args){
    Randomrandom1=newRandom(10);
    Randomrandom2=newRandom(10);
    for(inti=0;i<5;i++){
    System.out.print(random1.nextInt(5));
    }
    System.out.println();
    for(inti=0;i<5;i++){
    System.out.print(random2.nextInt(5));
    }
    }
  • 举一反三