title: get items from java.util.List within particular ranges of Index
body: <p>I have an ArrayList, lets say: <code>[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]</code></p>
  <p>I want to get elements from the 2nd index to the 4th index, so the output should be <code>[3, 4, 5]</code>.</p>
  <p><strong>How can I achieve this?</strong></p>