Convert string to array in Java?
<p>I have a string which has the values like this (format is the same):</p>

<pre><code>name:xxx
occupation:yyy
phone:zzz
</code></pre>

<p>I want to convert this into an array and get the occupation value using indexes.</p>

<p>Any suggestions?</p>
