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

 

andersoniii.edwin@cusd80.com week5 > capitalizeMe
prev  |  next  |  chance

Write the method called “capitalizeMe”. This method receives a string and returns a String which every lower case letter from the second parameter is changed to upper case and all other letters lower case. In the given string. Given: I Love Java , a – this would return: i love jAvA. We will assume the words are separated by just one space... No beginning or ending space characters.


capitalizeMe("I Love Java", "a") → "i love jAvA"
capitalizeMe("Math Is For Champions", "a") → "mAth is for chAmpions"
capitalizeMe("What a good day", "o") → "what a gOOd day"

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

public String capitalizeMe(String phrase, char letter){ }

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: 110

Copyright Nick Parlante 2017 - privacy