Search:

Type: Posts; User: gautammuktsar@gmail.com

Search: Search took 0.12 seconds.

  1. Replies
    9
    Views
    1,090

    Re: Iterator

    import java.util.*;

    class CollectionEx{

    public static void main(String arg[]){
    Vector obj = new Vector();

    obj.add(new Integer(99));
    obj.add(new Integer(78));
    obj.add(66);
  2. Replies
    9
    Views
    1,090

    Re: Iterator

    then could be necessary for the class which implements the Iterator to provide defination for their all 3 methods ??...but while using Iterator to transverse the elements of collection(container) we...
  3. Replies
    9
    Views
    1,090

    Re: Iterator

    Well thank you . But one thing more in case of List interface ,class ArrayList is implementing List interface but my question is which class is implementing the Interface Iterator .
  4. Replies
    9
    Views
    1,090

    Re: Iterator

    i m new to java and as a matter of fact ,i m a bit confusing that how a interface contain whole methods..i have read that interface can contain only the defination of the method ..can you make me...
  5. Replies
    9
    Views
    1,090

    Iterator

    what is iterator ??
    is it a interface or object ??
Results 1 to 5 of 5