Top "Stringbuilder" questions

Stringbuilder is a class that provides a convenient and efficient way of working with text data in Java and .NET framework.

How to retrieve a StringBuilder Line Count?

I have a StringBuilder instance where I am doing numerous sb.AppendLine("test"); for example. How do I work out …

c# .net stringbuilder
StringBuilder - Reset or create a new

I have a condition that a StringBuilder keeps storing lines matching a pattern from a large flat file (100's of …

java stringbuilder
Capitalise first letter in String

I'm having trouble converting the first letter to Capital in a String: rackingSystem.toLowerCase(); // has capitals in every word, so …

java stringbuilder capitalize
Java CharAt() and deleteCharAt() performance

I've been wondering about the implementation of charAt function for String/StringBuilder/StringBuffer in java what is the complexity of …

java performance string complexity-theory stringbuilder
StringBuilder vs. String considering replace

When doing concatenating lots of strings, I have been recommended to do it using a StringBuilder as such: StringBuilder someString = …

java string replace stringbuilder
Performance between String.format and StringBuilder

To concatenate String we often use StringBuilder instead of String + String, but also we can do the same with String.…

java stringbuilder string.format
Groovy literal StringBuilder/StringBuffer

Groovy supports a literal syntax for creating a StringBuilder/StringBuffer instead of the usual def sb = new StringBuilder() However, I …

groovy stringbuilder
Stream StringBuilder to file

I need to create a large text document. I currently use StringBuilder to make the document and then call File.…

c# string file streaming stringbuilder
StringBuilder encoding in Java

I have a method which loads file from sdcard (Android) and then reads it with StringBuilder. The text which im …

file encoding stringbuilder fileinputstream
Default capacity of StringBuilder

What is the default capacity of a StringBuilder? And when should (or shouldn't) the default be used?

c# .net stringbuilder capacity