SortedSet inherits from Set behave identically on sorted sets and normal sets with two exceptions: - The
Iteratorreturned by theiteratoroperation traverses the sorted set in order. - The array returned by
toArraycontains the sorted set's elements in order.
toString method of the JDK's SortedSet implementations returns a string containing all the elements of the sorted set, in order.
No comments:
Post a Comment