/* package whatever; // don't place package name! */

import java.util.*;
import java.util.stream.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main(String[] args) {
    Set<String> strings = Arrays.asList("c", "a", "b", "z", "y", "x", "p", "q", "r", "f", "g", "h")
            .stream()
            .sorted()
            .collect(Collectors.toSet());
    System.out.println(strings.getClass());
    System.out.println(strings);
}
}