About 53 results
Open links in new tab
  1. java - Why StringBuilder when there is String? - Stack Overflow

    The StringBuilder class is mutable and unlike String, it allows you to modify the contents of the string without needing to create more String objects, which can be a performance gain when you are …

  2. 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?

  3. 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 working on …

  4. 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.

  5. c# - StringBuilder and byte conversion - Stack Overflow

    Feb 2, 2012 · StringBuilder and byte conversion Asked 14 years ago Modified 8 years ago Viewed 75k times

  6. .net - StringWriter or StringBuilder - Stack Overflow

    Mar 2, 2009 · What is the difference between StringWriter and StringBuilder and when should I use one or the other?

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

    Jan 26, 2013 · StringBuilder result = new StringBuilder(); result.append(someChar); Now I want to append a newline character to the StringBuilder. How can I do it?

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

    Apr 11, 2010 · How do you append a new line(\\n\\r) character in StringBuilder?

  9. StringBuilder vs String concatenation in toString () in Java

    StringBuilder is a significant performance increase when working large strings just like using the + operator is a large decrease in performance (exponentially large decrease as the String size increases).

  10. 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,