If u want to replace pipe symbol "|" in a sentence with %7C using java code .U need to write the code like this
String s="google|yahoo";
s=s.replaceAll("\\|","%7C");
Now "|" will be replaced by %7C
Friday, December 14, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment