After spliting a string using stringspilt how will I store it in an arraylist?
<p>I have a string variable similar to</p>

<pre><code>           String my = "split it";
</code></pre>

<p>I split this using <code>split()</code>.</p>

<pre><code>           java.util.Arrays.toString(my.split("\\s+"))
</code></pre>

<p>The output is [split it]. But I want to store this in an arraylist, in FIRST index split and in SECOND index. Pls let me know how will I can achieve this.Thanks in advance.</p>
