Reunir a través de TreeSet Java

for (Integer value : ts)
{
    System.out.print(value);
}
Unsightly Unicorn