public void run() {
		println("This program finds the largest and smallest numbers.");
		int x = readInt("? ");

		if (x != SENTINEL) {
			int max = x;
			int min = x;
			
			while (true) {
				x = readInt("? ");
				if (x == SENTINEL) {
					break;
				}
				if (x > max) {
					max = x;
				}
				if (x < min) {
					min = x;
				}
			}
			println("smallest: " + min);
			println("largest:  " + max);
		} else {
			println("No numbers entered.");
		}
	}