Daniel Phillips26,385 Points
- He was showing that if you have a List of Strings you can use the toArray() method to generate an array of Strings. Using toArray() with no arguments produces an Object which is an array of Strings. If you need an actual String array, you can pass the toArray() method an argument which is a String array (Craig just created a new one inline with new String).
- Working the other way, Craig was showing that if we have some Strings (or any Objects of the same type) that we want to convert into a List of Strings (or a List of Objects of the same type), we can use the Arrays.asList() method. Just pass the objects as a comma-separated list of arguments.