(Object[] objects, Collection collection)
| 75 | } |
| 76 | |
| 77 | static void toObjectArray(Object[] objects, Collection collection) { |
| 78 | Iterator i = collection.iterator(); |
| 79 | for(int iter = 0 ; iter < objects.length ; iter++) { |
| 80 | objects[iter] = i.next(); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | static Object[] toObjectArray(Collection collection) { |
| 85 | Object[] objects = new Object[collection.size()]; |