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 conctact(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 following activities.
– Add a contact into array list. This method should receive a contact class object and insert it into array list. Before insert, iterate the array list and check the new contact mobile number already exist the array list contacts. If exists, throw 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 contains input name as a substring. Example if input is “Raj” then all names which contains “Raj” and their mobile number must be concatenated into single string and stored in a temporary array list. this method should return that array list.
– Display contacts – this method should return array list sorted by mobile number.
In swing application create text fields to get inputs(name and mobile number) and drop down list to get 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 name from text field and pass this to 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 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).
As the best, my homework help website in the world, Writersabc.com strives to deliver only high-quality finished papers to all customers. We value impeccable quality and guarantee that we will deliver on that promise more than anything else. We will deliver!
With us you are guaranteed of quality work done by our qualified experts.Your information and everything that you do with us is kept completely confidential.
Have you received your finished paper but are not satisfied with what our writer submitted? You can initiate our money-back guarantee to get your money back with no strings attached.Read more
Writersabc.com is the best my homework help website in the world. At WritersABC, we have a team of certified, tried, and tested writers who work around the clock to ensure that you receive only high-quality, 100% original finished papers.Read more
At WritersABC, we guarantee all our customers of the best essay writing service in the writing industry. And that’s precisely what we strive to deliver. As such, we encourage all our customers to utilize our unlimited free-revision policy if you aren’t satisfied with your paper. Don’t accept any paper until you are 100% satisfied with it.Read more
We value the trust that our clients accord us and respect every customers’ rights to personal data protection. We will never share, sell, or rent any information that we collect from you with any third parties. Both your personal and financial information is safe with us.Read more
We have only gotten this far with the help of our loyal customers and a team of dedicated experts. As the best, my homework help website, WritersABC implores customers to help make our writers’ work easier. Visit our fair-cooperation guarantee for more information on the same.Read more