title: Build a method that prints only a specific section of a file based array
body: <p>Good day guys.
  I have to build a method that prints only a section of an array.</p>
  
  <p>I set it up like this:</p>
  
  <pre><code>printArray1( intList, countOfInts, 3,  6 );
  </code></pre>
  
  <p>because it  denotes that it prints inclusively between array[3] and array[6].</p>
  
  <p>My problem is that I do not know how to build into the method the sectioning off part.</p>
  
  <p>This is what I've come up with.</p>
  
  <pre><code>static public int printArray1( int[] intList, int countofInts, ???, ???)
  {
      if (countofInts &gt;= 0 &amp;&amp; (intList.length-9 &lt;= countofInts &amp;&amp; countofInts &gt;= (intList.length-6) ))
      {
          for (int i = 0; i &lt; countofInts; i++) 
          {
              System.out.print(intList[i] + "\t ");
          }
      }
  
  return countofInts;
  }
  </code></pre>
  
  <p>How to incorporate this sectioning off into the method?</p>
  
  <p>Earlier in the program it reads a file then stores the info into an array. How do I get the method to only print that certain section of the array?</p>