Here you can find the source of getIterator(List
public static <T> Iterator getIterator(List<T> list)
//package com.java2s; //License from project: LGPL import java.util.Iterator; import java.util.List; public class Main { public static <T> Iterator getIterator(List<T> list) { Iterator i = list.iterator(); return i; }//from w w w . j a v a 2 s .c o m }