Here is the exercise: Create a class called SortingTest. In it, create a method that accepts an array of int values as a parameter, and prints out the elements sorted (smallest element first) to the terminal.
Part of this questions is also taking about using HashSets which are supposed to be used. How??
Here is what I have got so far
import java.util.Arrays;
import java.util.HashSet;
public class SortingTest {
public void sortArrays(int numbers[]) {
Arrays.sort(numbers);
System.out.println(numbers);
}
}
I think I am just not understanding the concept of what it is asking me to do.