• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Looking for simple Round robin example

 
Meir Yan
Ranch Hand
Posts: 599
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all
i have problem to find "Simple' example source code to understand the round robin algorithm
can some one please point me to some info and simple java code implementation of round robin?
thanks
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Round Robin" usually means just to step round a list of objects.

Imagine a group of people sitting in a circle and passing someting between them. The item passes from one person to another round the circle, potentially forever.

As a code example, try this:



In this case I am using an iterator to step through a list, and starting again when I reach the end.

Does that make any sense?
 
Ramesh Sunkara
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Frank

Your post is very useful for me thanks for your help
 
naniigadu pokiri
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Frank,

You example gives us everything to understand,

Thanks,
Raja
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic