I want to delete all the full stops ( . ) in a string.
Therefore I tried: inpt = inpt.replaceAll(\".\", \"\");,
but instead of deleting only the full st
String#replaceAll(String, String) takes a regex. The dot is a regex meta character that will match anything.
Use
inpt = inpt.replace(".", "");
it will also replace every dot in your inpt, but treats the first parameter as a literal sequence, see JavaDoc.
If you want to stick to regex, you have to escape the dot:
inpt = inpt.replaceAll("\\.", "");