This method is same as addString() method but here a separator is also included.
Method Definition: def addString(b: StringBuilder, sep: String): StringBuilder
Return Type: It returns the elements of the list to a string builder along with a separator between them.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.