Converting String to Int in Java using Arrays
<p>I'm trying to convert the string values to integers, however whenever i do this, it gives me the ASCI value of the character instead of the actual typed string.  </p>

<p>Example: </p>

<p>a user inputs "11101" on there keyboard to a string variable named binary</p>

<pre><code>for(int i = 0; i &lt; binary.length(); i++){
storage[i] = Integer.valueOf(binary.charAt(i));
}
</code></pre>

<p>if I look at the values of storage[i], i will see only the ASCI values of the numbers, and not the actual 1's or 0's</p>
