java 5 conversion "list to array