OVERALL INFORMATION –
CONTACT NAMES AND PHONE NUMBERS
A Data Structures Information System needs to be written in
order to review Collections as found in the Java Collections Framework.
CONTACT NAMES CLASS
FILE
The information system needs to hold a collection of contact
names and their corresponding numerical phone number. For example, a contact name such as Mawson,
Judith has a phone number of 412-555-1212 (all for illustration only). Make up at least five for this system.
GRAPHICAL USER
INTERFACE PROGRAM
Create GUI programming techniques via a separate .java class
file. You can design more than one GUI
.java file but only one is required to interface with the contact names class.
You are NOT allowed to use an interface in an IDE
(Interactive Development Environment) that generates the Java code
automatically.
In terms of the GUI (Graphical User Interface), you can use
the JOptionPane and/or the Scanner Classes or you can create more advanced
GUI’s (using either Swing or JavaFx).
Keep in mind that the GUI class must be a separate .java
class file from the contact names class .java file.
The main menu should consist of the following:
Sets
Create and
work with a Set (no Duplicates)
Create and
work with a Set (HashSet)
Lists
Create and
work with an ArrayList
Create and
work with a LinkedList
Stacks
Create and
work with a Stack
Queue
Create and
work with a Queue
Exit
Once the user makes a choice as to which data structure to
create, the user should be prompted to enter the data (contact name and their
corresponding cell phone number) into the data structure.
Additionally, the user should be allowed to perform at least
four
of the following operations on the collection:
(choose the ones you want to incorporate into your program via the
predefined methods) add a contact name and its corresponding cell phone number, delete a contact name and its corresponding
cell phone number, search for a specific contact name, and, if it is found, it
should then display its corresponding cell phone number, copy the data structure and then
display both collections, sort the collection by contact name, count the number
of entries (contacts) in the collection, output the collection in reverse
order, or any other operations you want to include.
For each operation, your program should allow the user to
display the collection before and after.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |