Answer to Question #77317 in Java | JSP | JSF for Renier Markram
addName (name) – adds a name to the list of names. Throws a ServiceBackUpException if there is no free space in the list.
removeName (name) – removes a name from the list. Throws a NoServiceRequestException if the name is not in the list.
getName(i) – returns the i’th name in the list.
getNumber – returns the current number of service requests.
Write a program that uses an object of type ServiceRequests to keep track of customers that have called. It should have a loop that, in each iteration, attempts to add a name, remove a name, or print all names. Use an array of size 10 as the list of names.
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!