return Array Method Assignment;
<p>I am trying to return an array method is it possible ??</p>

<pre><code>public static void main(String [] args){
    int size;
    int [] myArray = new int [size];
    for(int i=0; i&lt;size; i++){
        myArray[i]= returnArray(size)[i];
        System.out.println(myArray(i));
    }

}

private static int [] returnArray(int size){
    int arr = new int [size];
    for(int x=0; x&lt;size; x++){
        arr[x]=x;
    }
    return arr;
}
</code></pre>
