Skip to Main Content

Java Programming

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!

2d arrays,

807605Aug 21 2007 — edited Aug 21 2007
I'm a noobie with java and i seem to be a little stuck with my 2d array.
I have a small class called piece, with many classes extended off it.
public class Piece
{
  protected boolean[][] arr;
  public void left(){}

}
in my left function i want to take arr[l][h]; and change it to arr[h][l].

is there like a pre existing java command to get the actual size of the array at stake. or do i have to make some sort of get function?
i really just want to get a variable (int) Length = arr[l]; and Height = arr[*][h]
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 18 2007
Added on Aug 21 2007
3 comments
309 views