String[] fruits = {"apples", "oranges", "pears", "plums"} for (String i:fruits) { System.out.print(i); }