I came across a question where I have to store to pair in PriorityQueue. But Java does not have anything like pair. What can be the alternate used in Java for making a pair?
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 154 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 146 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 135 |
| 9 | maroonrk | 133 |
| 10 | cry | 130 |
Alternate for make_pair(c++) in Java
I came across a question where I have to store to pair in PriorityQueue. But Java does not have anything like pair. What can be the alternate used in Java for making a pair?
| Rev. | Lang. | By | When | Δ | Comment | |
|---|---|---|---|---|---|---|
| en3 |
|
Jass_Manak | 2019-05-30 08:40:46 | 2 | ||
| en2 |
|
Jass_Manak | 2019-05-29 20:42:57 | 20 | ||
| en1 |
|
Jass_Manak | 2019-05-29 20:41:41 | 210 | Initial revision (published) |
| Name |
|---|


