looping through an array of objects java code example Example: loop an array of objects in java for(Dog d : kennel) { d.bark(); }