About 128,000 results
Open links in new tab
  1. Difference between StringBuilder and StringBuffer - Stack Overflow

    Dec 10, 2008 · What is the main difference between StringBuffer and StringBuilder? Is there any performance issues when deciding on any one of these?

  2. c# - When to use StringBuilder? - Stack Overflow

    Using StringBuilder you modify the actual content of the object without allocating a new one. So use StringBuilder when you need to do many modifications on the string.

  3. Replace all occurrences of a String using StringBuilder?

    Apr 15, 2017 · Am I missing something, or does StringBuilder lack the same "replace all occurrences of a string A with string B" function that the normal String class does? The …

  4. How to append a newline to StringBuilder - Stack Overflow

    Jan 26, 2013 · 297 I have a StringBuilder object, StringBuilder result = new StringBuilder(); result.append(someChar); Now I want to append a newline character to the StringBuilder. How …

  5. Is String.Format as efficient as StringBuilder - Stack Overflow

    Aug 9, 2008 · String.Format uses StringBuilder internally, so logically that leads to the idea that it would be a little less performant due to more overhead. However, a simple string …

  6. c# - Newline character in StringBuilder - Stack Overflow

    Nov 3, 2019 · How do you append a new line (\n\r) character in StringBuilder?

  7. string - When to use StringBuilder in Java - Stack Overflow

    It is supposed to be generally preferable to use a StringBuilder for string concatenation in Java. Is this always the case? What I mean is this: Is the overhead of creating a StringBuilder object,

  8. c# - How to use StringBuilder wisely? - Stack Overflow

    A StringBuilder object maintains a buffer to accommodate the concatenation of new data. New data is appended to the end of the buffer if room is available; otherwise, a new, larger buffer is …

  9. C++ equivalent of StringBuffer/StringBuilder? - Stack Overflow

    Mar 17, 2010 · Is there a C++ Standard Template Library class that provides efficient string concatenation functionality, similar to C#'s StringBuilder or Java's StringBuffer?

  10. c# - String vs. StringBuilder - Stack Overflow

    Sep 16, 2008 · I understand the difference between String and StringBuilder (StringBuilder being mutable) but is there a large performance difference between the two? The program I’m …

Refresh