FileDocCategorySizeDatePackage
ArrayCopyDemo.javaAPI DocExample323Tue Dec 12 18:58:06 GMT 2000None

ArrayCopyDemo

public class ArrayCopyDemo extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        char[] copyFrom = { 'd", 'e", 'c", 'a", 'f", 'f", 'e",
			    'i", 'n", 'a", 't", 'e", 'd" };
        char[] copyTo = new char[7];

        System.arraycopy(copyFrom, 2, copyTo, 0, 7);
        System.out.println(new String(copyTo));