title: Java-How can I peel off a single char in a String and store them in a 1D array?
body: <p>I have a String <code>"301918574X"</code> and I want to store each letter into an array with <code>3</code> in the first slot, <code>0</code> in the second slot, <code>1</code> in the third slot, etc. </p>
  
  <p>How would I go about doing this?</p>
  
  <h2>EDIT:</h2>
  
  <p>I now have each character assigned to the appropriate array slot. But there is one letter in the array, and that's <code>"X"</code> (this is actually an ISBN). When there is an <code>X</code>, it should have the value of <code>10</code> but obviously that won't work in a character array.</p>