- Itrator is an interface that retrieve the data one after an other.
- Itrator supports some methods.
- hs.next() this method return true if the next element is present in the collection else return false.
- next() method return the next element from the collection.
- we have to create the object of itrator interface using the method Itrator. example: Itrator ir = ar.itrator();
فریبا
سهشنبه 17 مردادماه سال 1391 ساعت 01:48 ق.ظ