Java SE platform version 5.0 introduces for loop with a little modification to simplify things for the developers.
String countries[]={"Australia","Germany","France","Itlay"};
for (String element : countries) {
System.out.println("Element: " + element);
}