I have been asked for a two arrays, I have found this tool (int[])ArrayUtils.addAll(a, b)
that I can solve in a single line. The problem is that the compiler gives me error
C: \ Users \ BEEO \ Desktop \ java \ practice3> javac Vector.java . \ OperationVectores.java: 23: error: can not find symbol int [] c = (int []) ArrayUtils.addAll (a, b); ^ symbol: variable ArrayUtils location: class OperacionVectores 1 error
import java.util.Arrays;
public class OperacionVectores{
public int[] ConcatV(int[] a, int[] b){
int[] c= (int[])ArrayUtils.addAll(a, b);
return c;
}
}
Thank you very much for your time