Не выполняется условие "Реализуй метод main(String[]) согласно условию". Подскажите, пожалуйста, что ему не нравится?
package com.javarush.task.pro.task05.task0504;
/*
Объединяем массивы
*/
public class Solution {
public static int[] firstArray = new int[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
public static int[] secondArray = new int[]{10, 11, 12, 13, 14, 15, 16, 17, 18, 19};
public static int[] resultArray;
public static void main(String[] args) {
int l1 = firstArray.length;
int l2 = secondArray.length;
int length = l1 + l2;
resultArray = new int[length];
for (int j = 0; j < length; j ++) {
if (j < l1) {
resultArray[j] = firstArray[j];
}
else if (j < length) {
resultArray[j] = secondArray[j - l2];
}
}
for (int i = 0; i < resultArray.length; i++) {
System.out.print(resultArray[i] + ", ");
}
}
}