Q:

get items from java.util.List within particular ranges of Index

I have an ArrayList, lets say: [1,2,3,4,5,6,7,8,9,10]
I want to get elements from the 2nd index to the 4th index, so the output should be [3,4,5].
How can I achieve this? 

A:

Use List.sublist() as you can find in Oracle documentation :
http://docs.oracle.com/javase/7/docs/api/java/util/List.html#subList(int,%20int)

A:

I do not understand the relation to Hibernate. However, you could use List.subList()

