All pastes #982673 Raw Edit

loop attempt

public java v1 · immutable
·published 2008-04-12 19:50 UTC
rendered paste body
do {	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);