i have to make sure the user presses a number between 0 and a 1000 , but i'm not sure how to do it.
For other cases i used while ( !keuze.equals("1") && !keuze.equals("2") && !keuze.equals("3") ); but that doesn't
work in this case,because i'm not using a string but a Long(and there to much numbers to equal.
If the number is not between 0 or 1000 i want the println"how many simulations do you want" to repeat.
System.out.println("how many simulations do you wanna do(maximaal 1000)");
number of simulations = Input.readLong();
for ( y = 0 ; y < aantalSimulaties ; y ++) {
algoritme();
tellenVanBalletjes();
Any ideas?