Why do you have two classes for reading from the console? If one class reads and buffers the input, the other class will not know about it.


You should use the equals method to compare Strings...