Java, converting string to numbers then add all the numbers together
<p>I need to add 8 numbers together from a string.E.g. If someone enters say 1234 it will add the numbers together  1 + 2 + 3 + 4 = 10 then 1 + 1 = 2. I have done this so far. I cannot figure out how to add these numbers up using a for loop.</p>

<pre><code>String num2;     
String num3;   
num2 = (jTextField1.getText());
num3 = num2.replaceAll("[/:.,-0]", "");

String[] result = num3.split("");

int inte = Integer.parseInt(num3);

for (int i = 0; i &lt; 8; i++){

// Stuck

}
</code></pre>
