• Post Reply Bookmark Topic Watch Topic
  • New Topic

iterating through an array in an array of queues  RSS feed

 
Dan Rana
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This produce 3 queue arrays: q[0], q[1], and q[2].
I'm trying to walk through each array and deal with the elements inside of them, but I'm not sure how to do that.

any help would be awesome . thank you!
 
Mohamed Sanaulla
Bartender
Posts: 3185
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you have another loop, something like:


Did you try the above code? Where were you stuck if you did try?
 
Dan Rana
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mohamed Sanaulla wrote:So you have another loop, something like:


Did you try the above code? Where were you stuck if you did try?


this is exactly what I was looking for. thank you!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!