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

 

srp4379@lausd.net > flipCase
prev  |  next  |  chance

flipCase(). Given a string, if a letter occupies an even index position, make it uppercase. If a letter occupies an odd index position, make it lowercase. Show Hint button is available.


flipCase("hello") → "HeLlO"
flipCase("Madam, I'm Adam") → "MaDaM, i'm aDaM"
flipCase("How are you?") → "HoW ArE YoU?"

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

public String flipCase(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: 150 Post-solution available

Copyright Nick Parlante 2017 - privacy