Printing the contents of the  upper / second half of an array
<p>I want to print the contents of the second half of an array, or copy it to another new array.</p>

<p>I have this method:</p>

<pre><code>public static void evaluateF3(int[] anArray) {

int[] array2 = new int[anArray.length/2];
    for( int i = 0; i&lt;array2.length; i++) {
        for(int j= (anArray)/2; j&lt;anArray.length;j++) {
            array2[i]= anArray[j];
            System.out.print(" "+ array2[i]);
        }
    }
}
</code></pre>

<p>However it prints the same number of times as the inside for loop, when I only want to print once. I've tried taking the statement outside of the for loop, but then it just says it cannot find 'i'. How do I solve this problem?</p>
