I was looking through my friend code again (disecting it) and found a code to write to a file. I found a new type that I never used before. Yap, that’s StringBuffer. I know String or string (they got two version in .net) but never come across StringBuffer before. Why use it? String is ok, right? So these are what I find using google:
- http://www.java-tips.org/java-se-tips/java.lang/use-of-stringbuffer-class.html
- http://www.javaworld.com/javaworld/jw-03-2000/jw-0324-javaperf.html
- http://www.roseindia.net/java/beginners/StringBuffer.shtml
Guest what, StringBuffer is much more better than string. Hope I can use it more often, if I remember that