Re: Formatting of strings
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 31 Mar 2008 16:17:04 GMT
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
.
- References:
- Formatting of strings
- From: Ulf
- Formatting of strings
- Prev by Date: Re: Java Garbage Collection
- Next by Date: Re: Index creation In Java
- Previous by thread: Re: Formatting of strings
- Next by thread: "PriorityMap"
- Index(es):