something like this maybe..........
System.out.println("Pleaser enter two numbers");
int num = 0;
char ch = System.in.read();
char ch2 = System.in.read();
if(ch>='0' && ch<='9' && ch2>='0' && ch2<='9')
num = (ch-'0') * 10 + ch2 - '0';
else System.out.println("I said a number you fool");