Thread: Easy question
View Single Post
  #4 (permalink)  
Old 08-03-2007, 11:59 PM
levent levent is offline
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Check javadoc of String class.

You can write that line like this:

Code:
if (textline.equals("William")) System.out.println("xxxxxx");
Reply With Quote