I have to make an array copy and the second one have to repeat 3 times as array1 = [1,2,3], arrayB =[1,2,3,1,2,3,1,2,3], what I have so far:
public static void repeat(int[] array)
{
int[] arrayB = new int[array.length];
for (int i = 0; i < array.length; i++)
{
arrayB[i] = array[i];
}
System.out.println(" the new array values is: " + Arrays.toString(arrayB));
}