Ответ верный, компилятор не принимает! Глянул "правильные ответы" , там получается, всё тоже самое что и у меня, а именно массив :
[[1, 2, 3, 4, 5, 6], [7, 8, 9, 10, 11]]
package com.javarush.task.pro.task05.task0517;
import java.util.Arrays;
/*
Делим массив
*/
public class Solution {
public static int[][] result = new int[2][];
public static int[] array = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
public static int x = 0;
public static void main(String[] args) {
if (array.length % 2 == 0) {
} else {
result[0] = Arrays.copyOfRange(array, 0, (array.length/2 + 1));
result[1] = Arrays.copyOfRange(array, (array.length/2 + 1), array.length);
}
System.out.println(Arrays.deepToString(result));
}
}