Showing posts with label copyOf. Show all posts
Showing posts with label copyOf. Show all posts

Saturday, January 11, 2014

Using java copy array using copyOf

byte[] src = {1, 2, 3, 4};
byte[] dst = Arrays.copyOf(src, src.length);
System.out.println(Arrays.toString(dst));