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

 

simona1@sfusd.edu arraylist2 > combineLists
prev  |  next  |  chance

Given two ArrayLists nums1 and nums2 return a new ArrayList containing all the elements of both. The elements of nums1 should be in the first part of the new ArrayList and nums2 elements should be in the second part.


combineLists([1, 2], [1, 1]) → [1, 2, 1, 1]
combineLists([1, 2], [1]) → [1, 2, 1]
combineLists([1], [1, 1]) → [1, 1, 1]

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

public ArrayList <Integer> combineLists(ArrayList <Integer> nums1, ArrayList <Integer> nums2) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy