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

 

fixSentence


Given a string containing a sentence, capitalize the first character of words that come right after the whitespace and return a new string. Also. the sentence should start with a uppercase letter.


fixSentence("hi") → "Hi"
fixSentence("Good morning") → "Good Morning"
fixSentence("nice job!") → "Nice Job!"

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

public String fixSentence(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

Copyright Nick Parlante 2017 - privacy