loop attempt
public java v1 · immutabledo { System.out.println("Please enter a integer number for the number of ticks:"); String tick = in.readLine(); try { ticks = Integer.parseInt(tick); } catch( NumberFormatException e ) { System.out.println("Not a number, try again..."); continue; } if(ticks < 1 || ticks > 5000) { System.out.println("Value must be between 1 and 5000."); }while(ticks < 1 || ticks > 5000);