title: "must be an array type but is resolved to char" Tic Tac Toe Program Error
body: <p>So, I'm creating a tic tac toe program according to the instructions provide to me. Looks like most of the code is complete except i'm getting an unusual error when compiled.</p>
  
  <p>"array required, but char found" when compiled on all lines that start with  "placeHolder"</p>
  
  <p>eg:-  placeHolder[1][0] = 'X';</p>
  
  <p>Can anyone help?</p>
  
  <pre><code>import java.awt.Color;
  import java.util.Scanner;
  
  
  public class TurtleTicTacToe {
  private static char[] placeHolder = new char[9];
  private static Scanner scanner = new Scanner(System.in);
  
  
  public static void main(String[] args) 
  { 
  World w = new World();
  Turtle t = new Turtle(w);
  drawTicTacToeboard(t);
  
  for (int i = 0; i &lt; 9; i++)
  {
    placeHolder[i] = ' ';
  }
  
  
  int goesFirst = (int) (Math.random()*2);
  if (goesFirst == 0)
  {
    int computerPick = (int) (Math.random()*9);
    while (placeHolder[computerPick] != ' ')
    {
      computerPick = (int) (Math.random()*9);
    }
    drawOat(t, computerPick);
  }
  else
  {
    for (int i = 0; i &lt; 3; i++)
    {
      for (int j = 0; j &lt; 3; j++)
      {
        if (placeHolder[i] == ' ')
  
        System.out.println("Pick a spot on the tic-tac-toe board between 0-8: ");
        int pick = scanner.nextInt();
  
        drawXat(t, pick);
      }
    }
  }
  
  }
  
  public static void drawTicTacToeboard(Turtle t)
  {
  t.setPenWidth(4);
  t.setPenColor(Color.black);
  t.penUp();
  t.moveTo(80, 180);
  t.penDown();
  t.setHeading(90);
  t.forward(480);
  t.penUp();
  t.moveTo(80, 300);
  t.penDown();
  t.forward(480);
  t.penUp();
  t.moveTo(240, 60);
  t.setHeading(180);
  t.penDown();
  t.forward(360);
  t.penUp();
  t.moveTo(400, 60);
  t.penDown();
  t.forward(360);
  }
  
  public static void drawXat(Turtle t, int pick)
  {
  int x = 0;
  int y = 0;
  
  if (pick == 1)
  {
   x = 160;
    placeHolder[1][0] = 'X';
  }
  
  else if (pick == 2)
  {
    x = 320;
    placeHolder[2][0] = 'X';
  }
  
  else if (pick == 3)
  {
    y = 120;
    placeHolder[0][1] = 'X';
  }
  
  else if (pick == 4)
  {
    x = 160;
    y = 120;
    placeHolder[1][1] = 'X';
  }
  
  else if (pick == 5)
  {
    x = 320;
    y = 120;
    placeHolder[2][1] = 'X';
  }
  
  else if (pick == 6)
  {
    y = 240;
    placeHolder[0][2] = 'X';
  }
  
  else if (pick == 7)
  {
    x = 160;
    y = 240;
    placeHolder[1][2] = 'X';
  }
  
  else if (pick == 8)
  {
    x = 320;
    y = 240;
    placeHolder[2][2] = 'X';
  }
  
  else
  {
    placeHolder[0][0] = 'X';
  }
  
      t.setPenWidth(2);
      t.setPenColor(Color.blue);
      t.penUp();
      t.moveTo(90+x, 70+y);
      t.penDown();
      t.moveTo(230+x, 170+y);
      t.penUp();
      t.moveTo(90+x, 170+y);
      t.penDown();
      t.moveTo(230+x, 70+y);
  }
  
  public static void drawOat(Turtle t, int AI)
  {
  int x = 0;
  int y = 0;
  
  if (AI == 1)
  {
    x = 160;
    placeHolder[1][0] = 'O';
  }
  
  else if (AI == 2)
  {
    x = 320;
    placeHolder[2][0] = 'O';
  }
  
  else if (AI == 3)
  {
    y = 120;
    placeHolder[0][1] = 'O';
  }
  
  else if (AI == 4)
  {
    x = 160;
    y = 120;
    placeHolder[1][1] = 'O';
  }
  
  else if (AI == 5)
  {
    x = 320;
    y = 120;
    placeHolder[2][1] = 'O';
  }
  
  else if (AI == 6)
  {
    y = 240;
    placeHolder[0][2] = 'O';
  }
  
  else if (AI == 7)
  {
    x = 160;
    y = 240;
    placeHolder[1][2] = 'O';
  }
  
  else if (AI == 8)
  {
    x = 320;
    y = 240;
    placeHolder[2][2] = 'O';
  }
  
  else 
  {
    placeHolder[0][0] = 'O';
  }
  
  t.setPenWidth(2);
  t.setPenColor(Color.red);
  t.penUp();
  t.moveTo(90+x, 100+y);
  t.setHeading(180);
  t.penDown();
  t.forward(40);
  t.moveTo(140+x, 170+y);
  t.setHeading(90);
  t.forward(40);
  t.moveTo(230+x, 140+y);
  t.setHeading(0);
  t.forward(40);
  t.moveTo(180+x, 70+y);
  t.setHeading(270);
  t.forward(40);
  t.moveTo(90+x, 100+y);
  }
  }
  </code></pre>