Convert List of String to Array of String in Java