Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get last n elements from list java

List<E> tail = l.subList(Math.max(l.size() - 3, 0), l.size());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #elements #list #java
ADD COMMENT
Topic
Name
7+9 =