Create a Queue class based on java.util.LinkedListclass. Your Queue class should have an enqueue(), dequeue(),peek(), and isEmpy() methods.
Create a new Java Application that has the following methods:
A method to randomly generate a number of elements between twogiven values and save them in a queue
A method to print a queue (10 elements per line). The originalqueue should remain as is after the print
A method to return the number of elements on the queue (withoutchanging the queue).
A method to search for a value in a queue. The queue shouldremain the same after the search is finished.
A method to exchange the first element
PayPal Gateway not configured
PayPal Gateway not configured