for (int i = 0; i <10; i++){ kast = slumptal.nextInt(6)+1; tarning1[i] = kast; } System.out.print(kast);