title: How to increase int value in Java?
body: <p>Let's say I increase the integer value here from 0 - 100.</p>
  
  <pre><code>public void onProgressChanged(int progress) {
      percentageMeasurer(progress);
  }
  </code></pre>
  
  <p>And I read it like to that, to save it afterwards:</p>
  
  <pre><code>int someValue = 0;
  public void percentageMeasurer(int currentProgress) {
      int someValue = currentProgress);
  }
  </code></pre>
  
  <p>The problem is, <code>onProgressChanged</code> will be excecuted twice, so the value of someValue will always become 100, I would like to add these two values, so the sum would be in the end 200, but of course it starts overwrite it the next time <code>onProgressChanged</code> is excuted.</p>