結果 : java list keep first n elements