• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Need some Help with Collections...  RSS feed

Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, DoYourOwnHomework. We won't do it for you.

Have you had any ideas on the subject? Tell us where you're stuck designing and implementing this, and we'll try to get you going.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!