View Single Post
  #2 (permalink)  
Old 08-06-2007, 09:53 AM
cruxblack cruxblack is offline
Senior Member
 
Join Date: Jul 2007
Posts: 130
cruxblack will become famous soon enough
Well, one thing u should realize, u are comparing a reference with a String value in every if clause u made
Code:
checkString == "y"
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
Reply With Quote