Question: what is mkstring in scala?
Answer: Scala List mkString() method with a separator with example. The mkString() method is utilized to display all the elements of the list in a string along with a separator. Method Definition: def mkString(sep: String): String. Return Type: It returns all the elements of the list in a string along with a separator.