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

 

jebbert@volusia.k12.fl.us > insertChar123
prev  |  next  |  chance

Write a method that has a string input parameter and a character input parameter. Return a new string as shown in the test data. The string input parameter will have at least one character in it.


insertChar123("testing", "a") → "taeasataianaga"
insertChar123("run", "-") → "r-u-n-"
insertChar123("fun", "X") → "fXuXnX"

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

public String insertChar123(String str, char ltr) { }

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

Copyright Nick Parlante 2017 - privacy