All pastes #384951 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-03-07 14:07 UTC
rendered paste body
public static short lireShort(){
	while (true) {
		try {
			System.out.println("entrez un short");
			Scanner sc = new Scanner(System.in);
			return sc.nextShort();
		} catch (InputMismatchException e) {
			System.err.println("ceci n'est pas un short");
		}
	}
}