Problem
1. Develop a Java implementation of an adaptable priority queue that is based on a heap and supports location-aware entries.
2. Develop a Java implementation of an adaptable priority queue that is based on an unsorted list and supports location-aware entries.