Given an array, return an ArrayList of the appropriate type with all the same elements. For example: int[1, 2, 3] would turn into ArrayList with the elements 1, 2, and 3. Solutions must be 295 characters or less in length.
Given an array, return an ArrayList of the appropriate type with all the same elements. For example: int[1, 2, 3] would turn into ArrayList with the elements 1, 2, and 3. Solutions must be 295 characters or less in length.