
Keeping Track of Multiple Guests
47
4. Save Main.java.
5. Build and run your application.
The application should work similarly to the first chapter, except that
the guest’s data is displayed in a table at the bottom of the page instead
of as plain text.
At this point, your application still handles information from a single guest
only; in the next section, you’ll keep track of multiple guests.
Keeping Track of Multiple Guests
You’ve been using the variable currentGuest in the Main component to hold
the information entered by the user. You’ll need another variable (an array)
to store the list of all the guests who have registered.
Comentarios a estos manuales