The if statement isn't working because you have initialised c inside the try block
char c = br.readLine().charAt(0);
This isn't available outside that block so the if statement is comparing an...