How to use method with variables?
<p><strong>Targer</strong> - need to count how many numbers with 6 digit have same summ of left and right 3 digit</p>

<p><strong>What done</strong> - prepared 3 methods:</p>

<p><em>1-st</em> - counting summ of left 3 digit from number - works ok</p>

<pre><code>private static int counterLeft3(int i) {
    int digitCounter=0;
    int summLeft3=0;
    while (digitCounter!=3){
        summLeft3=summLeft3+(i%10);
        i=i/10;
        digitCounter++;
    }
    return summLeft3;
}
</code></pre>

<p><em>2-nd</em> - counting summ of right 3 digit from number - works ok</p>

<pre><code> private static int counterRight3(int i) {
    int summRight3=0;
    int buffer;
    int counter=0;
    while (counter!=3){
        summRight3=summRight3+(i%10);
        i=i/10;
        counter++;
    }
    buffer =i;
    summRight3=0;
    while (buffer!=0){
        summRight3=summRight3+(buffer%10);
        buffer=buffer/10;
    }
    return summRight3;
}
</code></pre>

<p><em>3-dr</em> - cycle for counting q-ty of numbers - allways return 0. thnink - my mistake thomthing here :</p>

<pre><code>private static void summCounter() {
    int counter=0;
    for (int i=111110; i&lt;1000000; i++){
        if (counterRight3(i)==counterLeft3(i)){ 
        }
        counter = counter++;
    }
    System.out.println("Q-ty is " + counter);
}
</code></pre>

<p><strong>debug - 
example</strong></p>

<p><img src="http://i.stack.imgur.com/OLnjO.png" alt="enter image description here"></p>

<p>result for 1-st method</p>

<p><img src="http://i.stack.imgur.com/SvFYy.png" alt="enter image description here"></p>

<p>result for 2-nd method</p>

<p><img src="http://i.stack.imgur.com/DtCLX.png" alt="enter image description here"></p>

<p><strong>Question</strong> - what wrong with 3-rd method, why it allways return just 0 and counter never increase? </p>
