Creating a set

Report a typo

Create a TreeSet named set and fill it with the following three strings "Gamma", "Alpha", "Omega".

The code for displaying the set is already written.

Write a program in Java 17
import java.util.*;

public class Main {

public static void main(String[] args) {
// write your code here
System.out.println(set);
}
}
___

Create a free account to access the full topic