java list of string to array of string