title: Java integer ArrayList return elements within a specific range
body: <p>I am having a java ArrayList of integer</p>
  
  <pre><code>ArrayList &lt;Integer&gt; ageList  = new ArrayList &lt;Integer&gt;();
  </code></pre>
  
  <p>I am having some integer values in this arrayList. I want to create a new ArrayList which has all elements in the above arrayList which passes a condition, like value between 25 and 35. ie if my ageList contains values </p>
  
  <blockquote>
    <p>{12,234,45,33,28,56,27}</p>
  </blockquote>
  
  <p>my newList should contain </p>
  
  <blockquote>
    <p>{33,28,27}</p>
  </blockquote>
  
  <p>How can I achieve this?</p>
  
  <p>Note: I came to java from objective C background, where I used NSPredicate to easly do such kind of things..Any similiar methods in java?</p>