27 January 2005 - java_dev (original) (raw)
10:00 pm - |
---|
| | 11:12 pm - ex_juan_gan - TreeSet.addAll() Anybody tried to addAll a collection to a TreeSet?Say,SortedSet ss = new TreeSet();ss.addAll(Arrays.toList(new int[] {3, 17, 90, 1, 27, 2005}));Try it, you'll find it amusing. |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |