loop with 2 counters
<p>I took a string, turned it into an array, and now i need to call specific ranges of the array Ex:  symbolsArray [1-5] and increment the range by 5.( [6-10] )</p>

<pre><code>public static String getNumber(String symbols){

    String symbolsArray [] = symbols.split("");
    int a =2;
    int b = 6;
    for (int i=5; i &lt; 31;i+=5){

        if (symbolsArray[a-b]== ... ){
            System.out.println(...);
        } else() {
            System.out.println(...);
        }
    }
}
</code></pre>

<p>How do I show the values of the array from position a to position b? That is my question.</p>
