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

 

andersoniii.edwin@cusd80.com > changeMyCase
prev  |  next  |  chance

Write the method called “changeMyCase”. This method receives a string and returns a String which every lower case letter is changed to upper case and every upper case is changed to lower case. In the given string. Given: I Love Java – this would return i lOVE jAVA. We will assume the words are separated by just one space... No beginning or ending space characters.


changeMyCase("I Love Java") → "i lOVE jAVA"
changeMyCase("Math Is For Champions") → "mATH iS fOR cHAMPIONS"
changeMyCase("What a good day") → "wHAT A GOOD DAY"

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

public String changeMyCase(String phrase) }

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

Copyright Nick Parlante 2017 - privacy