Дорогие товарищи , не выполнен последний метод , я запутался , чайник закипел , помогите
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 void main(String[] args) {
if(array.length%2==0){
int[] result2 = Arrays.copyOfRange(array,0,7);
result[0] = result2;
int[] result3 = Arrays.copyOfRange(array,7,12);
result[1] = result3;
}else {
int[] result4 = Arrays.copyOfRange(array,0,5);
result[0] = result4;
int[] result5 = Arrays.copyOfRange(array,5,11);
result[1] = result5;
}
System.out.println(Arrays.deepToString(result));
}
}