4.2 An array is a collection, even though there is no array class. But an array of objects can be converted into an instance of the ArrayList class. Look in the file Arrays.java in the package java.util to determine the generic algorithm (that is, static metho d) that converts an array of objects into an ArrayList of those objects. How can that ArrayList then be printed without a loop? | |
| View Solution | |
| << Back | Next >> |