imprimé arbre Java

TreeSet<Integer> treeset = new TreeSet<Integer>();
treeset.add(1);
treeset.add(5);
treeset.add(7);
treeset.add(8);

treeset.forEach( element -> {
    System.out.println(element);
});
abdullah