A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Programmer Certification (SCJP/OCPJP)
remove line feed and carriage return from a string
Joined: Aug 27, 2003
Dec 16, 2004 16:05:00
How can we remove the line feed and carriage return from a
String str = "\r\n";
Joined: Mar 13, 2004
Dec 16, 2004 16:49:00
I would use the replaceAll() method of String.
SCJP 1.4, SCWCD in process
I agree. Here's the link:
subject: remove line feed and carriage return from a string
String assignment confusion
Stripping Carriage Returns
Please HELP Socket Amateur!
how to clear/reset buffer when I use BufferedReader?
Newline Vs Carriage return
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014