Scala Map mkString() method with a start, a separator and an end with example
This method is same as mkString() but here a start, a separator, and an end is also added.
Method Definition: defmkString(start: String, sep: String, end: String): String
Return Type: It returns the elements of the map as a string along with a stated start, separator and an end.
>>>geeks -> 5|for -> 3|cs -> 2--
>>>geeks -> 5|for -> 3--
My Personal Notes arrow_drop_up
Please Login to comment...