With regards to the code block in question, you can see for yourself what it does by printing out "ignore", e.g.,

ignore = (char) System.in.read();
System.out.println("[" + ignore + "]");

To...