Hi there,

I am a little confused about multi-dimension array definition in ruby.
I tried the following

a=Array.new(3,Array.new(2,Array.new))
p a

out put is:
[[[ ], [ ]], [[ ], [ ]], [[ ], [ ]]]

What I need is a 2 dimesional array a, with the following elements

a[0][0]
a[0][1]
a[1][0]
a[1][1]
a[2][0]
a[2][1]

I try to use a[i][0] << aNumber in a for loop ...

Is it right? Anyway, in the program, it is not giving out result I
expected. :(

Thanks
Shannon