ok i am trying this double looped method but can't get the body of the second loop to work at the moment, it just wont swap the two
ok, i have an
Appointment class
AppointmentList
Person
PersonList
Menu
any ideas, nothing too complicated as she will sus that kind of thing but anything within my limitations, please just tell me what i am doing wrong at the moment
public void sortByDate() { Outside: for (int i = 0; i < theList.getNextFreeLocation(); i++) { Appointment temp = new Appointment("", "", "", 3, "");
C:\Documents and Settings\Rozhan\Desktop\project\Diary>javac *.java Menu.java:308: unexpected type required: variable found : value theList.getAppointment(i) = theList .getAppointment(j); ^ Menu.java:309: unexpected type required: variable found : value theList.getAppointment(j) = temp; ^ 2 errors