intmin=10;intmax=99;ListlistInt=newArrayList<>();Scannersc=newScanner(System.in);System.out.print("Digite a quantidade de jogos: ");intquantidade=sc.nextInt(),jogos=1;while(jogos<=quantidade){for(inti=0;i<50;i++){intnum=(int)(Math.random()*(max-min+1))+min;listInt.add(num);}Collections.sort(listInt);listInt.forEach(x->System.out.print(x+" "));System.out.println("");listInt.clear();jogos++;}
M
Maks_Silva
ficou bom, mas so um probleminha esta gerando numeros repetidos na mesma linha