publicclass Main {
publicstaticvoid main(String args[]) {
String str = "this is a test";
System.out.println(removeChar(str,'s'));
}
publicstatic String removeChar(String s, char c) {
String r = "";
for (int i = 0; i < s.length(); i++) {
if (s.charAt(i) != c)
r += s.charAt(i);
}
return r;
}
}
//thi i a tet