// public static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
public class Example {
public static void main(String[] args) {
char[] src = { 'a', 'b', 'c', 'd', 'e', 'f', 'g'};
char[] dest = new char[7];
System.arraycopy(src, 0, dest, 0, src.length);
for (char ch : dest)
System.out.println(ch);
}
}
/*
run:
a
b
c
d
e
f
g
*/