Re:
The Java Tutorials:
Home Page > Collections > Interfaces > List Interface: 
Iterators
 
Dear Java Programmer:public int indexOf(E e) {
    for (ListIterator<E> it = listIterator(); it.hasNext(); )
        if (e == null ? it.next() == null : e.equals(it.next()))
            return it.previousIndex();
    return -1;  // Element not found
}The if statement checks to see if current element is null?Stuck on this 
syntax.  Please comment.  Thank you.


Respects,

JKid314159
http://existentialists.blogspot.com/
 
 
 


      
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to