Hi,
Can someone explain to me why StringBuilder is auto sized to 16 when initialised?
All other Arrays & Collections are either zero size, or fixed size. (capacity)
The collections framework where size can be dynamic is always zero length to start with and grows as the elements are added.
Why is StringBuilder sized in this way?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts
Can someone explain to me why StringBuilder is auto sized to 16 when initialised?
All other Arrays & Collections are either zero size, or fixed size. (capacity)
The collections framework where size can be dynamic is always zero length to start with and grows as the elements are added.
Why is StringBuilder sized in this way?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts