View RSS Feed

Copy

  1. Copying Arrays

    by , 03-04-2012 at 11:08 AM
    An arraycopy method is used by the system class which can efficiently be used to copy one array’s data to other:

    Java Code:
    public static void arraycopy(Object src,
                           int srcPos,
                           Object dest,
                           int destPos,
                           int length)
    The array to copyfrom or the array to copyto is specified by the two object arguments. Three int arguments are used for the specification ...
    Categories
    Copy