In Scala mutable collection, equals() method is utilized to check whether the two SortedSets have the same elements or not.
Method Definition: def equals(that: Any): Boolean
Return Type: It returns true if the elements of both the SortedSets are same else it returns false.
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.