about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 280
Copyright Nick Parlante 2017 - privacy