結果 : java get first n elements of list