hi im wondering how u error check to make sure that the getInt method only
retrieves integrs and nothign else..eg no alphabets
here r the methods

//-------------------------------------------------------------
public static String getString() throws IOException
{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
String s = br.readLine();
return s;
}

//-------------------------------------------------------------
public static int getInt() throws IOException
{
String s = getString();
return Integer.parseInt(s);
}

//--------------------------------------------------------------