I've been stuck on this for a while and have tried everything I can think of. If I have two classes called FirstClass and SecondClass, and the FirstClass contains an array of objects that are objects from the SecondClass. Each object contains two ints and a string.
I'm trying to create a method in the FirstClass that will go through each object in the array and print out the two ints and string held within that object.
Am I correct when thinking I must create a printMethod in the SecondClass, then call on that printMethod from the FirstClass using the array? How do I go about doing this?
I appreciate any help, and thanks