my java is not that great and i am trying to append the values in a linked list to a Text area however it is not displaying the values and i am getting an error but i cannot get to the bottom of it. Please help.
if (event.getSource()==btnDisplay)
    {   
        String s = "";
        Booking selectBooking = new Booking();
        txtArea.setText("");
        s="LessonType           No.InParty  Surname   Forename   InstructorCode \n";
        txtArea.append(s);
        s="--------------------------------------------------------------------------------\n";
        txtArea.append(s);
        ListIterator li = bookings.listIterator();
        while(li.hasNext());
        {
            s = li.next().toString();
            txtArea.append(s);
        }
    }
I am getting an error
s = li.next().toString();
Any help would be greatly appreciated. Thanks!!
