Skip to content
Advertisement

Tag: midp

Fastest way to concatenate multiple strings

I’m working on a function that requires to concatenate multiple strings. Something like 200 – 500 strings. I’m currently using StringBuffer. I wanted to know if this is the fastest way to concatenate multiple strings. I need this method to be as efficient as possible. Answer The StringBuffer with proper capacity new StringBuffer(length) is fastest way to concatenate strings in

Advertisement