title: Finding numbers within a certain range in an arraylist
body: <p>I have an Integer array list that collects numbers that the user inputs. I have to display numbers within the array that &lt;= 50, using a method. How can I do this?</p>
  
  <pre><code>public static double levelR(List&lt;Integer&gt; marks){
    for (int i= marks.get(0); i&lt;= 50; i++){
        System.println(marks.get(i));  
  }
  </code></pre>
  
  <p>This is all I have for the method so far, I'm clueless on what to do next.</p>