
-----------------------------------
sathushan
Mon Jun 07, 2010 5:19 pm

Array Methods
-----------------------------------
I was wondering if someone can help me fix this problem. I am trying to call a method with an array inside it but I think i'm doing it wrong. any assistance is appreciated.

I have this initialized this 2D array in my main class; it is a 3 by 3 array

char[][] outline={{' ',' ',' '},{' ',' ',' '},{' ',' ',' '}};

What I want is to show the below array on the screen. The is the method I want to call is below.

    public static void showBoard(char board[][])
  {

      for(int x=0;x