Skip to main content

Practice ยท 3 of 3

Debug: the title-izer that misbehaves

titleCase should capitalize the first letter of EVERY word and lower the rest: titleCase("the JAVA tutorial") is "The Java Tutorial". The version below drops words and keeps wrong case โ€” find both bugs (loop boundary and char handling) and fix them.

Difficulty: beginner

Back to lesson: Practice: Practice: Text Processing