[#12] Extend method logic
All checks were successful
DCO / DCO (pull_request) Successful in 34s
All checks were successful
DCO / DCO (pull_request) Successful in 34s
Signed-off-by: Ori Bruk <o.bruk@yadro.com>
This commit is contained in:
parent
c9a54d56fb
commit
23bbe08893
70 changed files with 1375 additions and 587 deletions
|
@ -13,10 +13,10 @@ public class ArrayHelper {
|
|||
throw new IllegalArgumentException(ERROR_MESSAGE);
|
||||
}
|
||||
|
||||
byte[] result = new byte[startArray.length + endArray.length];
|
||||
byte[] joinedArray = new byte[startArray.length + endArray.length];
|
||||
|
||||
System.arraycopy(startArray, 0, result, 0, startArray.length);
|
||||
System.arraycopy(endArray, 0, result, startArray.length, endArray.length);
|
||||
return result;
|
||||
System.arraycopy(startArray, 0, joinedArray, 0, startArray.length);
|
||||
System.arraycopy(endArray, 0, joinedArray, startArray.length, endArray.length);
|
||||
return joinedArray;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue