Added Paginator.java

do you think we could add a code example to the javadoc?
(so that people see some usage)