Answers for "print treeset javaaaa"

3

print treeset 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);
});
Posted by: Guest on July-16-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language