I have this method that removes a specific letter from the string
public static String removeSpecificLetter(String s, String letter){
s.replaceAll(letter, "");
return s;
}
and when I try to print it using the code below it returns "aabbcc"
public static void main(String[] args) {
String s1 = "aabbcc";
System.out.println(removeSpecificLetter(s1, "a"));
}