title: Java PriorityQueue and Comparable interface
body: <p>Hi there folks<p>
  I've been looking at how to implement and use Java PriorityQueue.<br>
  The queue I need has to be able to compare priority of two different type of objects.<br>
  I found and read this <a href="http://www.javamex.com/tutorials/collections/priorityqueue.shtml" rel="nofollow">PriorityQueue</a> article, but there is no mention if it's possible to compare two different type of objects.<p>
  Do you know if it's possible?<p>
  Thanks<br>
  Gunnlaugur</p>