SilkyFalcon

Generation

generate functionFri, 25 Nov 2022

java check if text contains any swear words

public class Solution { static String clean (String text){ return text.replaceAll("(?i)bro", "").replace("(?i)dude", ""); } }

Want to kickstart your project?Use the new AI Studio to create your code