Why do i get \"AAAAAAAAA\" instead of \"1A234A567\" from following Code:
String myst = \"1.234.567\"; String test = myst.replaceAll(\".\", \"A\"); System.o
You need to escape .
.
make it
String myst = "1.234.567"; String test = myst.replaceAll("\\.", "A"); System.out.println(test);