about | help | code help+videos | done | prefs |
Write a method that returns 'str' but with all the capital letters removed. You are restricted to the following string methods: .length, .equals, .substring, .charAt, .compareTo. You may not use any other string methods, but otherwise there are no restrictions. Please note: In displaying results, CodingBat only shows one space when there are one or more consecutive spaces. If your results look just like the expected results, but it still shows yours as wrong, you probably have a problem with spaces. test2022_11_17_SLHL_removeCaps("wRITING tEST dATA iS mY lEAST fAVORITE pART oF pROGRAMMING, bUT iT iS sTILL aN iMPORTANT pART.") → "w t d i m l f p o p, b i i s a i p." test2022_11_17_SLHL_removeCaps("This is a TEST") → "his is a " test2022_11_17_SLHL_removeCaps("All CAPS are to be removed, LeAvInG all OTHER sYmBoLs!") → "ll are to be removed, evn all smos!" ...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: 250
Copyright Nick Parlante 2017 - privacy