結果 : java return first n elements of list