Meaningless Drivel is fun!
The moose likes Beginning Java and the fly likes Need help with this Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Need help with this Problem

Anantha Ramachandra

Joined: Feb 06, 2008
Posts: 4
In an institute following information is maintained about the students:

Student Class

Roll Number (Unique identifier of the student)
First Name
Last Name
Year Of Study
Activity Choice

For each of the following scenarios, specify which of the four core collection interfaces will be most appropriate and why. If you feel, more than one interface is suitable, you can mention all of them. Also describe briefly, why you think so.

1)Every week, a student is chosen at random as in charge of the Mess Food committee.
2)The students are allowed to choose a recreation activity to be provided by the institute in the common room. List of unique activities is to be prepared to be provided by the institute.
3)We need to know how many students have opted for each activity. So count the number of students who have the same activity.
4)The institute provides a career counselor for students who visit the institute once a week. Each student can book a slot with the counselor. Create a waiting list of students for the forthcoming weekly visit.

Thanks a Million ..... In advance
Joanne Neal

Joined: Aug 05, 2005
Posts: 3742
We don't do homework questions on javaranch. If you want to tell us what you think the answers are and why, I'm sure people will comment on them.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
I agree. Here's the link:
subject: Need help with this Problem
jQuery in Action, 3rd edition