appending arguments to a String

I need to write a simple Java program so as to step through a given string (given from args[]), and receive a println once a certain character (e.g. ‘^’) is encountered. However, I cannot find why I …

How much to grow buffer in a StringBuilder-like C module?

In C, I’m working on a “class” that manages a byte buffer, allowing arbitrary data to be appended to the end. I’m now looking into automatic resizing as the underlying array fills up using calls to …

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 …