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

 

pais@kinetigram.com > S26_plusOut
prev  |  next  |  chance

APCS String 2, Problem 6. Given a string and a non-empty word string, return a version of the original String where all chars have been replaced by pluses ("+"), except for appearances of the word string which are preserved unchanged.


S26_plusOut("12xy34", "xy") → "++xy++"
S26_plusOut("12xy34", "1") → "1+++++"
S26_plusOut("12xy34xyabcxy", "xy") → "++xy++xy+++xy"

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

public String S26_plusOut(String str, String word) }

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