FileDocCategorySizeDatePackage
ForeachDemo.javaAPI DocExample370Sun Jan 25 13:43:38 GMT 2004None

ForeachDemo

public class ForeachDemo extends Object

Fields Summary
Constructors Summary
Methods Summary
static voiditerate(java.util.Collection c)

	    for (String s : c)
 		 System.out.println(s);
	
public static voidmain(java.lang.String[] args)

		List<String> l = new ArrayList<String>();
		l.add("Toronto");
		l.add("Stockholm");
		iterate(l);