Program to maintain list of names with associated numbers

Assignment Help JAVA Programming
Reference no: EM13552331

Write a program to maintain a list of names with associated telephone numbers. Your user interface should appear like the one below:

1903_Telephone numbers.png

The two JTextField allow you input the name and phone number. Initially, they are blank.

The three buttons behave as described below:

ADD a click on this button causes the "NAME" and "PHONE" you input is added to a list and the two textflieds are back to be blank.

DISPLAY a click on this button causes to print out all the values in the list in the terminal window. However, there are no two lines are identical. See the picture below:

1773_Telephone numbers1.png

QUIT a click on this button causes the terminal of the program. System.exit(0) will work.

HINTS:

Write a complete subclass of SimpleList named ListSet where the ‘add' method is overridden such that a ListSet will never contain duplicate items. The ListSet must use content equality to determine whether it contains an item. The ListSet ‘add' method will not ‘add' an item if the ListSet already contains the item and will return ‘false'. If the ListSet doesn't contain the item, then the ‘added' item is inserted as the last item in the ListSet and the add method returns ‘true'. In either case, the iterator is positioned at the end of the ListSet after the ‘add' method is executed.

Reference no: EM13552331

Questions Cloud

Explain compare the total work done by the system : For an isothermal expansion of 1.00 mole of ideal gas at 399K and initially at 16.00bar pressure, compare the total work done by the system if the expansion is carried out
Estimate how hard does the beam push inward on the wall : A uniform 8.25m , 1750 kg beam is hinged to a wall and supported by a thin cable attached 2.00m from the free end of the beam, How hard does the beam push inward on the wall
Evaluate the force between those two wires : A 7.5-m long extension cord carries a current of 12 amps. The cord is made of two wires, Find the force between those two wires
Calculate the mass of the bug and rod : A thin uniform rod has a length of 0.520 and is rotating in a circle on a frictionless table. calculate the mass of the bug and rod
Program to maintain list of names with associated numbers : Write a complete subclass of SimpleList named ListSet where the ‘add' method is overridden such that a ListSet will never contain duplicate items - Write a program to maintain a list of names with associated telephone numbers.
Estimate the range of amplitue of the resulting wave : Two periodic waves interfere somehow. Both waves have the same frequency and wavelength. what is the range of amplitue of the resulting wave
Estimate what will the person hear : Suppose someone is running towards a siren which is at rest. The siren emits a frequency of 400 Hz. What will the person hear
Estimate the power generated by the applied force : A horizontal force of 50 N pushes a box that weighs 75 N across the floor at a constant speed. What is the power generated by the applied force
What is the rms-average magnitude of the momentum : Oxygen, modeled as an ideal gas, is in a container and has a temperature of 63.9°C. What is the rms-average magnitude of the momentum

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd