Implementing "Sample Queue client"

although the Java example doesn't use the iterator syntax (?)  ...so
neither did I.