Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get last n elements from list java

List<Post> myLastPosts = posts.subList(posts.size()-40, posts.size());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #elements #list #java
ADD COMMENT
Topic
Name
2+2 =