0
where’s the error ?
public class Program { public static void main(String[] args) { int[]a={4,3,2,6,7,8}; int[]b={5,1,9,11,10,12}; System.arryacopy(a,0,b,0,3); } }
8 Respuestas
+ 3
array spelling
+ 3
This is will only copy the elements.after this you have to iterate array again to get desire output
+ 2
Util.
And only two argument allowed for interger array
For char array there is used four arguments like u used
+ 1
Array spell is wrong ,check.
0
public class Program
{
public static void main(String[] args) {
int[]a={4,3,2,6,7,8};
int[]b={5,1,9,11,10,12};
System.arraycopy(a,0,b,0,3);
}
}
0
there is no output ? why
0
public class Program
{
public static void main(String[] args) {
int[] numbers={2,4,6,8,10,12,14};
java.util,Arrays.fill(numbers,2,5,0);
}
}
what about here ?
0
thank you so much ❤️