Add all the A tasks
This commit is contained in:
parent
2dd7375f96
commit
051504d65b
1608 changed files with 18584 additions and 0 deletions
9
Task/Array-concatenation/Java/array-concatenation-1.java
Normal file
9
Task/Array-concatenation/Java/array-concatenation-1.java
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
public static Object[] objArrayConcat(Object[] o1, Object[] o2)
|
||||
{
|
||||
Object[] ret = new Object[o1.length + o2.length];
|
||||
|
||||
System.arraycopy(o1, 0, ret, 0, o1.length);
|
||||
System.arraycopy(o2, 0, ret, o1.length, o2.length);
|
||||
|
||||
return ret;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue