Min Heap and Max Heap

Program to implement the Min Heap and Max Heap using the Java's Priority Queue Class.