Выводит все верно, но не проходит по 4 требованию. Помогите, пожалуйста
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 n = firstArray.length+secondArray.length;
int[] resultArray = new int [n];
int b = 0;
while (b<firstArray.length)
{resultArray[b]=firstArray[b];
b++;}
int t = 0;
while(t<secondArray.length)
{resultArray[b]=secondArray[t];
b++;
t++;
}
for (int i = 0; i < resultArray.length; i++) {
System.out.print(resultArray[i] + ", ");
}
}
}