1. Write a program that allows items to be inserted into or removed from any position within an array list, using suitable buttons. 2. Search Improve the search method so that it displays a message...


1. Write a program that allows items to be inserted into or removed from any position within an array list, using suitable buttons.


2. Search Improve the search method so that it displays a message whether or not the required item is found in the array list.


3. Queue Use an array list to implement a queue (line in the USA). A line is formed when you queue at a supermarket checkout or a self-service café. Implement the following:


Placing a person’s name at the end of the queue using a button and a text field.


Removing a name from the head of the queue using a button.


Displaying the whole queue in a text area.


Hint: the head of the queue is the first item in the list – the item with index 0.


Nov 15, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here