Ok so I have a class called Dog() which takes two parameters, a string and an integer. This class has a method called bark(), which prints a string depending on the intege
Just use it in the for each
for(Dog d : kennel) { d.bark(); }