Solve: Plus Two
Imported By: Geoffrey Challen
/ Version: 2021.6.0
Given two int[]
s of size 2, return a new array of size four containing the elements
from the first array followed by the elements from the second array.
So {1, 2}
and {3, 4}
would yield {1, 2, 3, 4}
.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.int[] plusTwo(int[] a, int[] b) {
return null;
}