Need some ideas....

Hi all. Needs some insight form u all.

I have a input data in two dimensional like this:

| a11, a12,........,a1n |

A=| a21, a22,........,a2n |

| .................... |

| am1,am2,.........,amn |

And I want my result would be like this:

R=[ [a11,a12], [a13,[a14,a15]],[a16,a17,a18], ...]

Any toughts? Can I use java.util.Set for this case? How about array? Which is better?

Best wishes,

[449 byte] By [mass845a] at [2007-10-2 11:40:55]
# 1
Do you reaaly want exactly this:R=[ [a11,a12], [a13,[a14,a15]],[a16,a17,a18], ...]? I can't see any rule here ...
MartinHilperta at 2007-7-13 5:33:04 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Not realy. But if I can "group" a11 and a12 that would be good (as well as the rest of data). Any tools?
mass845a at 2007-7-13 5:33:04 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...