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

 

String-3 > notReplace
prev  |  next  |  chance

Given a string, return a string where every appearance of the lowercase word "is" has been replaced with "is not". The word "is" should not be immediately preceeded or followed by a letter -- so for example the "is" in "this" does not count. (Note: Character.isLetter(char) tests if a char is a letter.)


notReplace("is test") → "is not test"
notReplace("is-is") → "is not-is not"
notReplace("This is right") → "This is not right"

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

public String notReplace(String str) { }

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

Copyright Nick Parlante 2017 - privacy