← Capgemini questions

Remove a given character from a string

Filed under Capgemini · Also reported at Caterpillar

Write a method that takes a string and a target character, and returns the string with all occurrences of that character removed.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Capgemini questions

Collected from public candidate posts and coding forums. Updated Nov 2026.