int[] objects = { "1", "2", "3", "4", "5" }; for (int i = 0; i < objects.length; i++) { System.out.println(objects[i]); }