This discussion is archived
9 Replies Latest reply: Feb 20, 2009 10:17 AM by 796367 RSS

stdIn.next .....into a 2 dimensional array of char

843785 Newbie
Currently Being Moderated
I'm having a hard time finding a way putting data into a 2 dimensional array of char's.
example of what i'm trying to do...
for (int r = 0; r<grid.length; r++)
    {
      for (int c = 0; c<grid[0].length; c++)
      {
      temp[r][c] = stdIn.next();  // seems to only work for string. 
      }
    }
Is it possible to do this without inputting it as a string 1st?