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

 

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

Write a method that returns a string 'str' but with all the characters between 'low' and 'high' (inclusive) removed. As a precondition, you may assume that 'low' and 'high' will be lower-case letters. Your method must remove ONLY lower-case letters and the space character. Do not remove any special symbols except for the space character.


dec16_2019_SLHL_removeBetweenLower("I have spent so much time writing this test. It is very frustrating that I can't write these faster. I have to make so much test data. That is the part that takes the longest. Oh well! Hopefully at least I am making you better programmers.", "a", "z") → "I.II'.I.T.O!HI."
dec16_2019_SLHL_removeBetweenLower("This problem really isn't too difficult.", "c", "f") → "Thisproblmrallyisn'ttooiiult."
dec16_2019_SLHL_removeBetweenLower("438gfdkl043gfjsk", "a", "z") → "438043"

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

public String dec16_2019_SLHL_removeBetweenLower(String str, char low, char high) { }

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