top button
Flag Notify
Site Registration

How to look and feel in the Iterator and the ListIterator?

+2 votes
283 views
How to look and feel in the Iterator and the ListIterator?
posted Jun 26, 2015 by Manikandan J

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Iterator look and feel:

 public interface Iterator<E> {
    boolean hasNext();
    E next();
    void remove(); //optional-->use only once with next(), 
                         dont use it when u use for:each
    }

ListIterator look and feel:

public interface ListIterator<E> extends Iterator<E> {
    boolean hasNext();
    E next();
    boolean hasPrevious();
    E previous();
    int nextIndex();
    int previousIndex();
    void remove(); //optional
    void set(E e); //optional
    void add(E e); //optional
}
answer Jun 29, 2015 by Shivaranjini
Similar Questions
+4 votes

When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?

0 votes

I just upgraded to Bugzilla 5.0 from Bugzilla 4.4.9 and everything is working accept the look has changed to a generic webpage like a word document instead of the previous default look of a webpage with buttons and Bugzilla logo.

Is there a file I needed to copy from the old Bugzilla installation to the new one?

...