Storing String on array java
<p>I want to know if is it possible to Store a String variable on a String array?
I cant explain it well but here is what i do:</p>

<pre><code> String st1 = "",st2 = "",st3 = "",st4 = "";
 String[] str = {st1,st2,st3,st4};
</code></pre>

<p>Unfortunately when i use for loop the str gets the value of st1 and st2 and st3 ans st4 not the variable it self..</p>

<p>This is what i want to do exactly on my mind..
Whenever a have a String array for example:</p>

<pre><code>String[] containsValue = { "hi", "hello", "there" };

String strHi, strHello, strThere;
String[] getContainsValue = { strHi, strHello, strThere };

for (int x = 0; x &lt; getContainsValue.length; x++) {
    getContainsValue[x] = containsValue[x];
}

The value of:
strHi = "hi"
strHello = "hello"
strThere = "there";
</code></pre>

<p>Basically i want to transfer that value of containsValue[] to 3 String which is strHi, strHello, strThere that are stored in getContainsValue[]. Then use for loop to asign value to them came from containsValue[].
Is this posible? If so then can you give me some format how to do it? thanks..</p>
