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

 

dsawyer@methacton.org string_packet_level_2 > upperLower
prev  |  next  |  chance

Given a string and a value of true, return a string where the first half is all upper-case characters and the second half is all lower-case. However, if the boolean variable has a value of false, the first half should be all lower-case characters and the second half should be upper-case.


upperLower("Alex", true) → "ALex"
upperLower("x", true) → "x"
upperLower("x", false) → "X"

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

public String upperLower( String s, boolean upperLower ){ }

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

Copyright Nick Parlante 2017 - privacy