designpatterns: Iterator in Java

Signed-off-by: Rohit Yadav <bhaisaab@baagi.org>