Iterator iterator = ts.iterator(); while (iterator.hasNext()) System.out.print(iterator.next());
for (Integer value : ts) System.out.print(value); }