title: Want a multidimensional array but get a null pointer exception
body: <pre><code>  1 public class TestWin{
    2     public static void main(String[] args){
    3         int n;
    4         hexagon[][] board;
    5
    6         n = 4;
    7         board = new hexagon[n][n];
    8         board[0][0].value = 'R';
  </code></pre>
  
  <p>Hi. javac doesn't like what I did on line 8. Does anyone know why?</p>