hi gays ,
i trying to creat method to copy array ,
Now how i can call this method from main ?PHP Code:
public static void arraycopy(Object src, int srcPos,Object dest, int destPos, int length)
{
Object[] srcArray=(Object[]) src;
Object[] destArray=(Object[]) dest;
for(int i=srcPos;i<srcPos+length;i++)
destArray[i]=srcArray[i];
}
eg :
PHP Code:
System.out.println("this is array to copy"+???+"and this is new array"+???);