FileDocCategorySizeDatePackage
ForeachArray.javaAPI DocExample185Sun Mar 07 16:17:34 GMT 2004None

ForeachArray.java

public class ForeachArray {
	public static void main(String args[]) {
		String[] data = { "Toronto", "Stockholm" };
		for (String s : data) {
			System.out.println(s);
		}
	}
}