Are you using generics in Java? Are you trying to execute a Collections.sort method call and getting an “unchecked” warning from the compiler? This is something I just had to battle with, and here’s how you do it correctly. First your Comparator needs to specify that it is of the type you will be comparing [...]
Continue reading...
Thursday, September 21, 2006
5 Comments