Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Looking for simple Round robin example

 
Ranch Hand
Posts: 604
  • 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
 
Sheriff
Posts: 6920
  • 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?
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Frank

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

You example gives us everything to understand,

Thanks,
Raja
 
    Bookmark Topic Watch Topic
  • New Topic