Sobes.tech
Junior — Senior

Sorting a collection of integers

livecode

Task condition

It is necessary to sort an object of type Collection<Integer> and store the resulting sorted set in a separate variable. Describe and compare possible approaches to sorting such a collection.

import java.util.Collection;

public class JetbulbInterview {
    public static void main(String[] args) {
        Collection<Integer> numbers = List.of(1, 5, -33, 0);

        Collection<Integer> sortedNumbers = 
    }
}