Example usage for java.util AbstractList listIterator

List of usage examples for java.util AbstractList listIterator

Introduction

In this page you can find the example usage for java.util AbstractList listIterator.

Prototype

public ListIterator<E> listIterator() 

Source Link

Usage

From source file:Main.java

public static void main(String args[]) {
    AbstractList<String> v = new Vector<String>();
    v.add("A");// ww  w  .  j  ava2  s.c  o  m
    v.add("B");

    Iterator i = v.listIterator();
    while (i.hasNext()) {
        System.out.println(i.next());
    }
}