Re: Formatting of strings



On Sun, 30 Mar 2008 12:53:36 -0700 (PDT), Ulf <ulf.hemma@xxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

I'm looking for the best way to combine two strings so that the result
ends with the 2:nd string in position 30-32. The 1:st string is 1 to
30 chars long.

The standard way of composing strings from pieces is to use a
StringBuilder. The nice thing about the technique it is does not get
any more complicated if the pieces are variable length.

see http://mindprod.com/jgloss/stringbuilder.html
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.