Doing math on character array is having unexpected results
<p>The characters print out as expected individually but the math does not make sense: 5*6=2862. Why am I not getting the expected result 30?</p>

<pre><code>String thousand = "567893342234";
char[] numberArray = thousand.toCharArray();
System.out.println(numberArray[0]);
System.out.println(numberArray[1]);

int a = numberArray[0];
int b = numberArray[1];
System.out.println(a*b);


Result: 
5 
6 
2862

Expected result:
5
6
30
</code></pre>
