===>SCJP 1.5(72%)<=== ==>SCWCD1.5(76%)<===
SCJP 6 Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Duran Harris wrote:Hmm doesn't int implement Comparable?
Ankit Garg wrote:Just use a cast if a.getFirst actually returns an int ((Integer)a.getFirst()).compareTo(b.getFirst())