Re: StringBuffer/StringBuilder efficiency



On Thu, 01 Oct 2009 17:03:04 -0400, Eric Sosman <Eric.Sosman@xxxxxxx>
wrote, quoted or indirectly quoted someone who said :

With today's StringBuilder, the output on my system is

[Ljava.lang.String;@3e25a5

Hmm. I never before noticed that append could take an Object.

However their is no existing String( Object ) constructor, which is
where I really want the concatenation logic for maximum efficiency.
--
Roedy Green Canadian Mind Products
http://mindprod.com

When you can?t find a bug, you are probably looking in the wrong place. When you can?t find your glasses, you don?t keep scanning the same spot because you are convinced that is where you left them.
~ Roedy
.



Relevant Pages

  • Re: StringBuffer/StringBuilder efficiency
    ... appendAll of a string[] would append each of its elements. ... You could also invent a new StringBuilder, called Cat that was ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)
  • Re: Reading data into an Array
    ... for how to convert the string to a number. ... Then feed the entire List to your widget. ... Look for constructors that ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.help)
  • Re: [Popupmenu]What is the use of Label and Name
    ... You can STORE the name there, but setName won't display the string. ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.help)
  • Re: Reading rows and columns
    ... String[] computerName ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.help)
  • Re: Actual width of unicode chracters.
    ... a string having numbers and Korean Characters together, ... Roedy Green Canadian Mind Products ... ~ Brian W. Kernighan 1942-01-01 ...
    (comp.lang.java.help)