dimanche 10 janvier 2016

Is there exception for out of bound in random generator?

how to add exception with these case

Random random = new Random();
y=random.nextInt(50);

then if I ask user input and he enter 50+ value. is there such exception like out of bound in random?




Aucun commentaire:

Enregistrer un commentaire