This is homework for a class I am taking. So I do not expect anyone to write code for me, just guidance for pseudo code is fantastic :)

So I have been given a main method by my teacher. This method creates an array of objects, sorts them into alphabetical order, then calls another method with "System.out.println(loans[0].Schedule());". This method should print out a schedule of that loan. What it is is kinda irrelevant, so I won't go into detail about it, but the method has a 2D array in it.

As you may know, the Schedule method cannot be void (I don't no why, it just gives me an error). So I tried making it "public String[][] Schedule()", but my teacher said that will not work since the way it is being called, "System.out.println(loans[0].Schedule());", println cannot handle printing a full 2D array.

Does anyone have any alternatives? All help is appreciated.