Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reshape Java Array

843789Feb 24 2010 — edited May 23 2010
Is there a simple way of reshaping arrays in Java? (From A to B)
From
A =
    1    4    7    10
    2    5    8    11
    3    6    9    12
          
... to this:
B =
    1    3    5    7    9   11
    2    4    6    8   10   12
I've looked at the math-lib [NetCDF-Java|http://www.unidata.ucar.edu/software/netcdf-java/], but since special Array-objects are created it's not as flexible as In would want.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2010
Added on Feb 24 2010
9 comments
4,315 views