I have an array of 3 objects stored in cdList.
Because I have now added them to an array, the usual method of displaying no longer works:
System.out.println(cd1.getArtist() + " " + cd1.getTitle() + " " + cd1.getCost());
My questions are......
how would i amend to output the array contents?
I would like to run a loop to run through the array and i THINK my attempt just needs a slight change becuase
works,but as a newbie im struggling a little bit...
for (int i = 0; i < cdList.length; i++) System.out.println(cdList[i]);