I have an array of Strings eg: String[] names. I would like to convert this to an ArrayList. I can write code to do it. But does anyone know of a method in the java API which already does this?
Yes, but Cathy wanted an ArrayList specifically. There's no guarantee that Arrays.asList() will return an instance of ArrayList. Your code is preferable though if there is no requirement for a specific type, just that it implements the List interface.