I have a String called persons.name
I want to replace the DOT .
with /*/
i.e my output will be persons/*/name
I tried this code:
String a="\*";
str=xpath.replaceAll("\.", a);
I am getting StringIndexOutOfBoundsException.
How do I replace the dot?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…