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

 

oct12_2018_SLHL_removeRecursion


Write a method that returns the input parameter 'str' with all occurrences of the word "recursion" in ANY combination of case (upper- or lower-case) removed from the 'str' string. The ONLY string methods you are allowed to use are .equals, .length, .substring, .charAt, .toUpperCase, .toLowerCase, and .compareTo. No other string methods are allowed. You may use other non-string Java commands and operations. You may choose to do this recursively, but recursion is NOT required.


oct12_2018_SLHL_removeRecursion("remove recursion, no matter how ReCuRSIon appears") → "remove , no matter how appears"
oct12_2018_SLHL_removeRecursion("once RECursiON seemed difficult. Now recurSION is easy.") → "once seemed difficult. Now is easy."
oct12_2018_SLHL_removeRecursion("Nothing to remove here.") → "Nothing to remove here."

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

public String oct12_2018_SLHL_removeRecursion(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: 410

Copyright Nick Parlante 2017 - privacy