import java.io.*; /* Author: James Tam Date: February 16, 2004 */ public class Driver { public static void main (String [] args) { TCExample eg = new TCExample (); boolean inputOkay = true; do { try { eg.method(); inputOkay = true; } catch (IOException e) { e.printStackTrace(); } catch (NumberFormatException e) { inputOkay = false; System.out.println("Please enter a whole number."); } } while (inputOkay == false); } }