Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

replace "\r\n" with ";"

807600Dec 4 2007 — edited Dec 4 2007
Hi everyone!

How can i replace a string that contains "\r\n" carriage return and line filled with a ';' semicolon character?

e.g String str="Company \r\n address \r\n phone \r\n";
new String str="Company;address;phone;";

thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2008
Added on Dec 4 2007
2 comments
186 views