Skip to main content

Practice ยท 3 of 5

Map with char arithmetic

CHALLENGE
Difficulty: intermediate+25 XP

Implement String shout(String s): uppercase every lowercase letter using char arithmetic (no toUpperCase), leaving everything else untouched. Trace 'c' โ†’ 2 โ†’ 'C' before coding.

Back to lesson: Practice: String lab