Question: Compulsory Task 1 Follow these steps: Create a Java file called priorityQueue.java. In this file, recreate a priority queue object without actually using PriorityQueue. Methods
Compulsory Task
Follow these steps:
Create a Java file called priorityQueue.java. In this file, recreate a priority
queue object without actually using PriorityQueue.
Methods to recreate: offer, remove, sort and size.
You are not allowed to use the builtin ArrayList methods to do these.
Your program should be able to act like a Priority Queue when given an
ArrayList of strings.
Compile, save and run your file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
