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

 

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

The Eagles is an awesome band that has had many top hits. The started in the 70's. However, they do not like people to use the letters in the name "Eagles". Write a method that returns a new string with all the letters in "Eagles" removed, in a case-sensitive way. So remove both capital and lower-case 'e', but only remove lower-case 'a', 'g', 'l', and 's'. Otherwise the string remains unchanged. Hint: Think of how to build the new string one letter at a time.


preEaglesRemoveLetters("The Eagle has landed") → "Th h ndd"
preEaglesRemoveLetters("A man, a plan, a canal, panama!") → "A mn, pn, cn, pnm!"
preEaglesRemoveLetters("Up in my birch I jump from low limbs.") → "Up in my birch I jump from ow imb."

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

public String preEaglesRemoveLetters(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