For an assignment, I was asked to work on calling a class and creating an array objects, which i did here;
public void DVDArrayObjects() {
    //creates variables
    int i;
    DVDClass[] dvdArray = new DVDClass[5];
    //reference to DVDClass
    for (i = 0; i < 2; i ++) {
        //create new instance of calling the class
            dvdArray[i] = new DVDClass();
        //create new instance of getting the info
            dvdArray[i].getDVDInfo();
        //display
        //System.out.println(dvdArray[i]);
    }
}
Creating the array of objects works fine, but displaying doesn't. it shows the memory allocation when i run it. I'm really stuck as to how to get it to display.
** EDIT **
When i use System.out.println(dvdArray[i].getDVDInfo()); the error void types not allowed in here shows up
** END OF EDIT **
Any help at all would be greatly appreciated.
 
     
     
    