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

 

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

Write a method called niMPHG that accepts a string as the input parameter and returns the string with all the instances of "ni" replaced with "Ecky-ecky-ecky-pikang-zoom-boing".


niMPHG("n i") → "n i"
niMPHG("A niB nini JKL ni") → "A Ecky-ecky-ecky-pikang-zoom-boingB Ecky-ecky-ecky-pikang-zoom-boingEcky-ecky-ecky-pikang-zoom-boing JKL Ecky-ecky-ecky-pikang-zoom-boing"
niMPHG("nine inch nails") → "Ecky-ecky-ecky-pikang-zoom-boingne inch nails"

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

public String niMPHG(String orig) { }

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