10 Replies Latest reply on Dec 18, 2006 5:36 PM by 807599

    How do i view an array which is in another class?

      I know how to view variables from another class but i dont know how to view arrays from another class. Im trying to get my class to view data from the other class's arrays. Can it be done in Java? If it can, then how?

      These are my arrays, i want these to be viewable by the other class:
          public int arraySmallWhiteStars[][] = new int [600][3];
          public int arrayLargeWhiteStars[][] = new int [3][3];
          public int arrayYellowStars[][] = new int [3][3];
          public int arrayMars[][] = new int [1][3];
      How can i do it?