How to store the return of a 2D Array
<p>How can i store the return of a 2D array? For example</p>

<pre><code>public Class A{

public String something(){
String []some_array=new String[2];
//stuff in here...sets elements of our array to something

//unsure of the next line
return some_array[];
}

public static void main(String[] args) {

String []some_other_array=new String[2];
A myA=new A();
//unsure of the next line
some_other_array[]=myA.something();
</code></pre>

<p>How do i go about returning the first-second element of the array that is being returned to be the first-second element of the array that i am storing it in?</p>

<p>Also can anyone clarify is it legal to use parameter variables from my method something() inside of it without making them equal to another variable first? I always thought you either had to declare another variable inside the method and make it equal to the parameter and use the new variable you created. </p>
