convert list of string to array of string java