Well, one thing u should realize, u are comparing a reference with a String value in every if clause u made
the checkString holds the value of a reference, not the String "y", thats why it returns a false and what u get is the word "Terminating"
Use the checkString.equals("y") to compare the value of a string
Check this post for further details
Java String