Write a program in Java to store a collection of movie names. There should be no duplicate
Fantastic news! We've Found the answer you've been seeking!
Question:
- Write a program in Java to store a collection of movie names. There should be no duplicate movies in the collection. The program must be able to (20 mark):
- add a movie
- remove a movie
- check if a movie exists
- delete all movies
- print out the number of movies
- print a list of all movie names
use HashSet
- Write a program in java that implements a HashMap to store students (student IDs as the key, and student names as the value). The program must be able to (10 mark):
- add some students, then print all students’ name
- remove all of the students at once
Related Book For
Fundamentals of Cost Accounting
ISBN: 978-0077398194
3rd Edition
Authors: William Lanen, Shannon Anderson, Michael Maher
Posted Date: