| about | help | done | prefs | create account |
Java > Array-1 > plusTwo
prev | next | chance
| Given 2 int arrays, each length 2, return a new array length 4 containing all their elements.
plusTwo({1, 2}, {3, 4}) → {1, 2, 3, 4} plusTwo({4, 4}, {2, 2}) → {4, 4, 2, 2} plusTwo({9, 2}, {3, 4}) → {9, 2, 3, 4} ...Save, Compile, Run See also Java Example Code. Java help docs: If Boolean Logic | Strings | While and For Loops | Arrays and Loops |
Forget It! -- delete my code for this problem 160.0
Copyright Nick Parlante 2006-10 - privacy