Copy String value in array
<p>can anyone help me on this.Lets say I have this array of string e.g.</p>

<pre><code>String fruit[]={"apple","orange","kiwi","apple","kiwi"}
</code></pre>

<p>and I want to allocate it in each individual string variable. e.g. <code>String box1="apple"</code>, <code>String box2="oranges"</code>, <code>String box3="kiwi"</code>. How can I actually copy the value of array and store it in string variable. Can anyone give idea on how to do this.</p>

<p>Sorry! I forgot to add this to my question if it detect a duplicate in array it should ignore the duplicate value . e.g. String fruit{"apple","kiwi","apple"}. Output Box1="apple", Box2="kiwi". </p>
