You should use a try/catch block for NumberFormatException, like
try {
x = Integer.parseInt(.....);
y = Integer.parseInt(.....);
etc
} catch (NumberFormatException nfe) {
nfe.printStackTrace();
}
and run that through the debugger