In Scala mutable collections, max() method is utilized to find the largest element of all the elements in the SortedSet.
Method Definition: def max: A
Return Type: It returns the largest of all the elements in the SortedSet.
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.