Java: Remove full stop in string
java, replace
Solution
`replaceAll` takes a regular expressions as an argument, and `.` in a regex means "any character".
You can use `replace` instead:
inpt = inpt.replace(".", "");
It will remove all occurences of `.`.
Problem
I want to delete all the full stops ( . ) in a string. Therefore I tried: `inpt = inpt.replaceAll(".", "");`, but instead of deleting only the full stops, it deletes the entire content of the string. Is it possible to delete only the full stops? Thank you for your answers!