I want to make a Tic tac toe game in Dr Java.

1. I ask you for a number between 0-8. You choose a number 5.
2. Then it should print out the tic tac toe board where 5 will be replaced by X.
3. Then I ask you again for a number between 0-8. Say you choose 3.
4. It should then show the tic tac toe board where 5 and 3 will be replaced by X.

It will be great if you can help with this program.

By the way, this is only the method and I still have to write the main body. 

This is my Code done in Dr Java. 

```
import java.util.Scanner;

public class TicTacToeArray {

  public static void main(String[] args){

    Scanner in = new Scanner(System.in);

    int [] A1 = {0,1,2};
    int [] A2 = {3,4,5};
    int [] A3 = {6,7,8};
    int [] A4 = {0,3,6};
    int [] A5 = {1,4,7};
    int [] A6 = {2,5,8};
    int [] A7 = {0,4,8};
    int [] A8 = {2,4,6};

    System.out.println("Player #1: Please enter a number between 0-8");
    int playerOne = in.nextInt();  

    if (playerOne == A1 [0]){
      System.out.println("           |          |          ");
      System.out.println("    X      |    1     |     2    ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");    
      System.out.println("           |          |          ");
      System.out.println("    3      |    4     |     5    ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");      
      System.out.println("           |          |          ");
      System.out.println("    6      |    7     |     8    ");
      System.out.println("           |          |          ");

    }else if (playerOne ==A1 [2]){
      System.out.println("           |          |          ");
      System.out.println("    0      |    1     |    X     ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");    
      System.out.println("           |          |          ");
      System.out.println("    3      |    4     |     5    ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");      
      System.out.println("           |          |          ");
      System.out.println("    6      |    7     |     8    ");
      System.out.println("           |          |          ");

    }else if (playerOne ==A2 [0]){
      System.out.println("           |          |          ");
      System.out.println("    0      |    1     |    2     ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");    
      System.out.println("           |          |          ");
      System.out.println("    X      |    4     |     5    ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");      
      System.out.println("           |          |          ");
      System.out.println("    6      |    7     |     8    ");
      System.out.println("           |          |          ");

    }else if (playerOne ==A2 [1]){
      System.out.println("           |          |          ");
      System.out.println("    0      |    1     |    2     ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");    
      System.out.println("           |          |          ");
      System.out.println("    3      |    X     |     5    ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");      
      System.out.println("           |          |          ");
      System.out.println("    6      |    7     |     8    ");
      System.out.println("           |          |          ");

    }else if (playerOne ==A2 [2]){
      System.out.println("           |          |          ");
      System.out.println("    0      |    1     |    2     ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");    
      System.out.println("           |          |          ");
      System.out.println("    3      |    4     |    X     ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");      
      System.out.println("           |          |          ");
      System.out.println("    6      |    7     |     8    ");
      System.out.println("           |          |          ");

    }else if (playerOne ==A3 [0]){
      System.out.println("           |          |          ");
      System.out.println("    0      |    1     |    2     ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");    
      System.out.println("           |          |          ");
      System.out.println("    3      |    4     |    5     ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");      
      System.out.println("           |          |          ");
      System.out.println("    X      |    7     |     8    ");
      System.out.println("           |          |          ");

    }else if (playerOne ==A3 [1]){
      System.out.println("           |          |          ");
      System.out.println("    0      |    1     |    2     ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");    
      System.out.println("           |          |          ");
      System.out.println("    3      |    4     |    5     ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");      
      System.out.println("           |          |          ");
      System.out.println("    6      |    X     |     8    ");
      System.out.println("           |          |          "); 

    }else if (playerOne ==A3 [2]){
      System.out.println("           |          |          ");
      System.out.println("    0      |    1     |    2     ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");    
      System.out.println("           |          |          ");
      System.out.println("    3      |    4     |    5     ");
      System.out.println("           |          |          ");    
      System.out.println("  -------------------------------");      
      System.out.println("           |          |          ");
      System.out.println("    6      |    7     |     X    ");
      System.out.println("           |          |          ");

    }else {
      System.out.println("Try Again");

    }
    return -1;
  }

```