package day1; public class ArrayMerger { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub byte[] b1={1,2,3,4}; byte[] b2={5,6,7}; byte[] b3=new byte[b1.length+b2.length]; System.arraycopy(b1, 0, b3, 0, b1.length); System.arraycopy(b2, 0, b3, b1.length, b2.length); for(int i=0;i<b3.length;i++){if(i!=(b3.length-1))
System.out.print(b3[i]+" , ");
else
System.out.println(b3[i]);
}
}}