Convert a string into an int array
<p>I was wondering how would I convert a <code>string</code> to an <code>int</code> array. </p>

<p>I created a reader to read from a text file, which consists of two lines. </p>

<ol>
<li>The first line is a random quote like "dogs are red" </li>
<li>The second line are numbers. </li>
</ol>

<p>I am supposed to save each character from the quote into a <code>char</code> array, and then the second line, consisting of the numbers, is the order number of each <code>char</code>, and when printed out in that order, it will spell out a phrase. </p>

<p>I used the <code>.hasNextLine</code> method to first save the two lines into two string variables. Then, I converted the first line into the <code>char</code> array, and that part is ok but I do not know how to convert the second part into an <code>int</code> array. </p>

<p>I called the variable holding the second line "numbers" and it contains the string <code>"6 25 11 32 6 11 44......"</code> </p>

<p>How would I convert this into an <code>int</code> array? </p>

<p>Thanks so much</p>