title: search in part of array list - java
body: <p>it is possible to do a search for example between the position 5 to 10 in a arrayList?</p>
  
  <p>how?</p>
  
  <p>in this case i need to do a search between position 1-5, 5-10, ... and i want to avoid another lists</p>
  
  <p>EDIT:   i have something like that</p>
  
  <pre><code>if (pp.move(i).subList(5, 10).contains(pn50.getText())) {
  </code></pre>
  
  <p>but i have a problem with this code, i needto call a method like:</p>
  
  <pre><code>if (pp.move(i).suit().subList(5, 10).contains(pn50.getText())) {
  </code></pre>
  
  <p>but i get an error: The method subList(int, int) is undefined for the type String
  thanks!!</p>