Thread: Easy question
View Single Post
  #2 (permalink)  
Old 08-03-2007, 11:36 PM
levent levent is offline
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Quote:
if (textline = "William") System.out.println("xxxxxx");
There should be two equals sign there to compare the result.

More than that, for comparing strings, you should use equals method of String class!
Reply With Quote