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

 

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

Write a method that returns the input parameter 'str' but with all E's and Z's removed. Remove both upper- and lower-case E's and Z's. The ONLY String methods you may use are: .length, .charAt, .substring, .equals, and .compareTo. You do not need to use all of these methods! Of course you can use all the normal non-String Java commands as needed. If there are no E's or Z's in the 'str' String, then you simply return that String unchanged.


sept28_2018_SLHL_superEZproblem("The number zero is conceptually important.") → "Th numbr ro is concptually important."
sept28_2018_SLHL_superEZproblem("Every Zebra eats eggs.") → "vry bra ats ggs."
sept28_2018_SLHL_superEZproblem("exactly zero egrets were harmed by this test!") → "xactly ro grts wr harmd by this tst!"

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

public String sept28_2018_SLHL_superEZproblem(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: 280

Copyright Nick Parlante 2017 - privacy