program:
public class SortedSet1 { public static void main(String[] args) { List ac= new ArrayList(); c.add(ac); ac.add(0,\"hai\"); ac.add
the point is ac.get(k) doesn't consume any element of the iterator at the contrary of it.next()