Change priorityQueue to max priorityqueue?

I have priority queue in Java of Integers: PriorityQueue<Integer> pq= new PriorityQueue<Integer>(); ...

linq question: querying nested collections?

I have a Question class that has public List property that can contain several Answers. I have a question repositor...

How to sort a HashSet??

For lists, we use the Collections.sort(List) method. What if we want to sort a HashSet? ...