Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

copy elements from one array to another java

int a[]={10,20,30,40,50};
int b[]=new int[a.length];
//copying one array to another
b=Arrays.copyOf(a,a.length);
 
PREVIOUS NEXT
Tagged: #copy #elements #array #java
ADD COMMENT
Topic
Name
6+9 =