how to copy values from one array to another in java code example
Example: how to make a copy of an array java
int a[] = {1, 8, 3};
// Copy elements of a[] to b[]
int b[] = a.clone();
int a[] = {1, 8, 3};
// Copy elements of a[] to b[]
int b[] = a.clone();