import java.util.*; public class ExtendedForTest1 { public static void main(String[] args) { List list = new ArrayList(); for (String s : list) { System.out.println(s); } Map map = new HashMap(); for (String s : map.values()) { System.out.println(s); } Set set = new HashSet(); for (String s : set) { System.out.println(s); } Vector vector = new Vector(); for (String s : vector) { System.out.println(s); } Iterator it = list.iterator(); for (String s : it) { System.out.println(s); } String[] array = new String[5]; for (String s : array) { System.out.println(s); } } }