Please use JDK 1.8
Create a swing GUI application to manage contact information.
Create a class Contact with details like Name, mobile number, type of contact(family, official).
Create another class called ContactManagement. In this class create an ArrayList to store the objects of contact class objects. Create methods to perform the following activities.
– Add a contact into the array list. This method should receive a contact class object and insert it into the array list. Before insert, iterate the array list and check the new contact mobile number already exist in the array list contacts. If exists, throw a user-defined exception “Duplicate Contact”.
– Search contact – this method should accept a name and searches it in the array list. This method should return all the contact names which contain the input name as a substring. For example, if the input is “Raj” then all names which contain “Raj” and their mobile number must be concatenated into a single string and stored in a temporary array list. this method should return that array list.
– Display contacts – this method should return an array list sorted by mobile number.
In swing, the application creates text fields to get inputs(name and mobile number) and a drop-down list to get the type of contact. Create three buttons, “Add contact”, “Search Contact” and “Display All Contacts”.
– Add Contact button – read the information from text fields and drop-down list and pass this information to add contact method of contact management class to store the details in the array list.
– Search contact – read the name from the text field and pass this to the search contact method of contact management class. If contact found display details in a text area, otherwise display the respective error message in the same text area.
– Display All Contacts – call the display contacts method from the contact management class and get the list of contacts. Display all contacts in a text area by iterating the array list. (Concatenate all contact details into one single string and set this string to text area). For more information on Contact Manager check on this: https://en.wikipedia.org/wiki/Contact_manager
Plagiarism Free Papers
Thehomeworkwritings.com’s team of writers write all papers from scratch. We deliver 100% original, unique papers. That’s what makes us the best custom homework writing service
We provide unlimited free revisions to all customers and on all papers. Try The Homework Writings today for the best custom homework writing service and experience in the industry.
Thehomeworkwritings.com gives clients title pages free of charge. Your only job is to fill out our order form. We will handle the rest.
As the leading essay writing service, we never submit any paper without a reference/bibliography page. We do this free of charge too.
Originality & Security
At Thehomeworkwritings.com, we take great pride in delivering only high-quality 100% original papers to all our clients. We also never share any of our clients’ information with third parties. Your data is safe with us.
24/7 Customer Support
No other custom homework writing service has a friendly, always available customer support team to respond to clients like us.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Why outsource our services
We have the best customer support team for your essay writing needs.
You won’t find any other custom homework writing service with pricing as flexible and affordable as ours.
Admission help & Client-Writer Contact
We provide a direct line of communication with our writers for the best writing experience.
As the leading custom homework writing service, we take deadlines very seriously. You will have your paper submitted on time without any delays.
We truly value your feedback, good or bad, and always use your feedback to help us provide you with an even better custom homework writing service