This method is same as mkString() method but here a separator is included.
Method Definition: def mkString(sep: String): String
Return Type: It returns the string representation of the stated collection with a given separator.
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.