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

 

orion.a.smith@gmail.com apcsa-lists > apcsaListAddSplice
prev  |  next  |  chance

Given an ArrayList of Strings and an additional String splice, add single-character Strings based on the indexes of splice to the end of lst, in the same order they appear in splice. Return the modified ArrayList.


apcsaListAddSplice(["Hello", "dolly"], "end") → ["Hello", "dolly", "e", "n", "d"]
apcsaListAddSplice(["wait", "wait"], "I am") → ["wait", "wait", "I", " ", "a", "m"]
apcsaListAddSplice(["a"], "bc") → ["a", "b", "c"]

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

public List<String> apcsaListAddSplice(ArrayList<String> lst, String splice) { }

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: 220

Copyright Nick Parlante 2017 - privacy