Skip to main content

Practice · 1 of 6

Mask the digits

CHALLENGE
Difficulty: intermediate+25 XP

Replace every **digit** with '#', leaving every other character exactly as it was. Implement process(String s). Example: "ab12cd3" → "ab##cd#".

Back to lesson: Practice: String lab: transformations under constraints