id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

crehwinkel@frhsd.com > appendTwo
prev  |  next  |  chance

Write a method that accepts two integer arrays as parameters which will create and return a new array that contains the two array elements appended. For example if the arrays {1, 2, 3} and {5, 5, 5, 6} are passed to the method, it will return the array {1, 2, 3, 5, 5, 5, 6}.


appendTwo([1, 2, 3], [5, 5, 5, 6]) → [1, 2, 3, 5, 5, 5, 6]
appendTwo([4], [8]) → [4, 8]
appendTwo([], [3]) → [3]

...Save, Compile, Run (ctrl-enter)

public int[] appendTwo(int [] a, int [] b){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 200

Copyright Nick Parlante 2017 - privacy