do{
System.out.print("Enter a number:> ");
myInt = myScanner.nextInt();
while(myInt > max || myInt < min);

Something like that you mean?