for (String word : badWords) text = text.replace(word, new String(new char[word.length()]).replace('\0', '*'));
The "mosaic" has evolved from a crude post-production overlay to sophisticated real-time rendering. jav censord
Here's a basic example of filtering out a censored word from a string: for (String word : badWords) text = text