Archive for the ‘Strings’ Category
StringBuilder rather then
StringBuffer, unless synchronization is required.
StringBuilder is not thread safe, and therefore avoids the synchronization overhead of
(submitted by Robert J. Walker)
toString() method gives you a cheap way to provide human-readable labels for objects in output. When the objects are used in GUI containers, such as
JTables, it allows to use the default models and renderers instead of writing the custom ones.