A subset of sorted set

Report a typo

Here is a set named sortedSet filled with values from 0 (inclusive) to 10 (exclusive).

SortedSet<Integer> sortedSet = new TreeSet<>();

// filling sortedSet with values from 0 to 10 ...

SortedSet<Integer> subSet = sortedSet.subSet(3, 7);
        
int first = sortedSet.first();

Select all true statements.

Select one or more options from the list
___

Create a free account to access the full topic