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

 

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

Ghosts are invisible, so replace every occurrence of "ghost" with "invisible" and "Ghost" with "Invisible". The only string methods you are allowed to use are: .length, .equals, .substring, .charAt, and .compareTo


oct31_2019_SLHL_invisibleGhost("xyz") → "xyz"
oct31_2019_SLHL_invisibleGhost("Vampire!") → "Vampire!"
oct31_2019_SLHL_invisibleGhost("Ghophers are not ghostly") → "Ghophers are not invisiblely"

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

public String oct31_2019_SLHL_invisibleGhost(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: 290

Copyright Nick Parlante 2017 - privacy