Problem
1. Give a Java implementation of a priority queue based on an unsorted list.
2. Write an applet or stand-alone graphical program that animates both the insertion-sort and selection-sort algorithms. Your animation should visu alize the movement of elements to their correct locations.