is there an equivalence in Ruby for the nested "for loop" in java.
i want to complete the following:
		i is 0
				j is 2
				j is 4
				j is 6
				j is 8
		i is 1
				j is 2
				j is 4
				j is 6
				j is 8
		i is 2
				j is 2
				j is 4
				j is 6
				j is 8
but want to use Ruby,(i think Rails has a foreach loop).I can do the above in Java 
but Ruby is still foreign to me.Whats the best method to implement the above?


--
--------------------------------- --- -- -
Posted with NewsLeecher v3.9 Beta 1
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -