Hello I wanted to print out just 4 random integers between the bounds 10 and 99, using a loop but have not been able to succeed. I tried this but it is not working.
int temp2 = random.nextInt(4);
for(temp2 = 10; temp2<= 99; temp2++){
System.out.println(temp2);
}
Aucun commentaire:
Enregistrer un commentaire