Whenever I am running my xhtml. It is giving me the following exception. The value of statusindex object is 5. I am using JQuery for lazy scrolling,so when my xhml page getMoreS
List.subList()'s documentation is very clear:
Throws: IndexOutOfBoundsException - for an illegal endpoint index value (fromIndex < 0 || toIndex > size || fromIndex > toIndex)
IndexOutOfBoundsException
fromIndex < 0 || toIndex > size || fromIndex > toIndex
In your case, toIndex > size:
toIndex > size
java.lang.IndexOutOfBoundsException: toIndex = 30