title: How to implement max heap with pair using priority queue in java?
body: <p>I am trying to implement Max heap with key value pair in java. As we know in C++ we can do that in this way..</p>
  <pre><code>    priority_queue&lt;pair&lt;int, int&gt; &gt; pq;
      pq.push(make_pair(10, 200));
      pq.push(make_pair(20, 100));
      pq.push(make_pair(15, 400));
  </code></pre>
  <p>But I am unable to do this in java, please help me to do so.</p>