python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to force stringbuilder to write string variables enclosed in double quotes?
I am trying to write a List of type string to a csv file and I want any string values to be enclosed in double quotes when written to the file.
This certainly seems like a very basic problem, but I am...
Maverick
Votes: 0
Answers: 1
StringBuilder delete methods
StringBuilder builder = new StringBuilder();
builder.append("hello");
The length of builder is 5.
So, if I call builder.deleteCharAt(5) I rightfully get an IndexOutOfBoundsException
yet I ca...

NightStorm
Votes: 0
Answers: 1
Assigning values in StringBuilder array using {}
I can't do this:
StringBuilder[] textArray = new StringBuilder("Word1", "Word2", "Word3", "e.t.c");
Do I do it wrong? Or is it just not possible? Are there bett...
Mackan
Votes: 0
Answers: 2
Longest Palindrome Edge Case due to String / StringBuilder Equality
This code doesn't work for the test case: aacabdkacaa, but it works for babad or cbbd. I wrote a print statement to debug and realized the code thinks that the strings aacakdbacaa and aacabdkacaa are ...

user12207727
Votes: 0
Answers: 2