Hi guys can u tell until tomorrow ??
Well,
I dont use java.util.iterator to create my iterator interface, just create my own so
I have 2 Iterators: AccountIterator / FileIterator, and my objective its to iterate abstract object "Account" and object "File" to my Main class in "deafult" package
(Also have 2 extends to AbstractAccount.class (BasicClass.class / PremiumClass.class, and AbstractAccount.class implements Account.interface)
There is my Iterator Interface:
package cs;
public interface Iterator<E> {
public void init() ;
public boolean hasNext();
public E next();
}
There is my Account Iterator
http://i.stack.imgur.com/w0avp.png
I cant use cast, any ideas
Cumps and sorry for bad english