(Object[] objects, Collection collection)
| 86 | } |
| 87 | |
| 88 | static void toObjectArray(Object[] objects, Collection collection) { |
| 89 | Iterator i = collection.iterator(); |
| 90 | for(int iter = 0 ; iter < objects.length ; iter++) { |
| 91 | objects[iter] = i.next(); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | static Object[] toObjectArray(Collection collection) { |
| 96 | Object[] objects = new Object[collection.size()]; |