Question: Write a program in Java that uses priority queues of strings to sort lines of text in reverse alphabetic order. You may choose how you define alphabetic order.
You may also choose what implementation of priority queue you use. Your priority queue definition and implementation should be your own, but you may copy at will from the course materials.
- It is advisable to use the InputStreamReader class to read lines.
- Documentation for that class can easily be found on the web. If you wish, you can use a Collator Java class to compare strings.
You need to implement a program in Java that uses priority queues of strings.