結果 : java list return first n elements