Talk:Iterator

From CSSEMediaWiki
Revision as of 23:32, 6 October 2008 by Dominic Winkler (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I am just wondering why is there a ">" in the if-statement between name and lastName. Maybe there is a special way of using the "great as" to find out if two Strings are equal in Java but as far as I know it would make more sense to have:

if(name.equals(LastName)
{
 myIterator.remove();
}
Personal tools