Write a program for deleting four bytes from an array of 50 bytes.
Answers
Answered by
0
2down vote
byte[] a; ... if(a.length > 1) { byte[] newA = new byte[a.length-2]; for(int i = 2; i < a.length; ++i) newA[i-2]=a[i]; }
Similar questions