d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > String Replace Method
Prev12
Add Reply New Topic New Poll
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
Apr 26 2013 12:29pm
Quote (m0hawk @ Apr 22 2013 07:20am)
For the sake of completeness, you should use StringBuffer (http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/StringBuffer.html) when doing operations such as replace, concatenation etc on strings.


StringBuilder should be used over StringBuffer 99% of the time because StringBuilder isn't synchronized and therefore has better performance.
Go Back To Programming & Development Topic List
Prev12
Add Reply New Topic New Poll