Convert String to int array in java
<p>I have one string </p>

<blockquote>
  <p>String arr= <code>[1,2]</code>;</p>
</blockquote>

<p>ie "[1,2]" is like a single string</p>

<p>How do convert this arr to int array in java</p>
