242526272829303132333435
return i < count; } public MyClass next() { i++; MyClass mc = new MyClass(); mc.setName(name + i); try{ Thread.sleep(2000); } catch(InterruptedException e){ //Ignore. }