How to limit the number of entries in a java List?
<p>I know how to limit size in Map (<a href="http://stackoverflow.com/questions/422181/how-do-i-limit-the-number-of-entries-in-a-java-hashtable">like this</a>,using LinkedHashMap.removeEldestEntry method does exactly that)</p>

<p>I want to know how to limit size in a List,what is a best way to implement?</p>

<p>thanks for help :)</p>
