Java Battleship Method insight
<p>I need a bit of insight on how to do this: I need the <code>placeBATTLESHIP()</code> method to "remember" what I typed into the method right above it, the <code>placeCARRIER()</code> method. every time I compile it, it makes the board a clean slate, and I'm calling the BATTLESHIP method inside <code>tehCARRIER</code> method, so I really don't understand why it's not working</p>

<p>here is my code, there is another class, bit you don't need it for my issue</p>

<pre><code>import java.math.BigDecimal;

import java.util.Scanner;
public class Field

{

  Scanner scan = new Scanner(System.in);
  String[] [] board = new String [10] [10];
  String[] letters = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J"};

  String s = "▓";
  String[] Carrier = {s, s, s, s, s};
  String[] BattleShip = {s, s, s, s};
  String[] Destroyer = {s, s, s};
  String[] Submarine = {s, s, s};
  String[] PatrolBoat = {s, s};

  public Field()
  {

  }

  public static void main (String [] args)
  {
    //Field ff = new Field();

    //ff.PrintField();
  }

  public void PrintField()
  {

    String test = "░";

    //176 = ░
    //177 = ▒
    //178 = ▓ 
    for (int x = 0; x &lt; letters.length; x++)
    {
      System.out.print(letters[x] + " │");
    }
    System.out.println();
    for (int i = 0; i &lt; board.length; i++)
    {
      for (int j = 0; j &lt; board[i].length; j++)
      {
        board[i] [j] = test;
        System.out.print(board[i] [j] + "  ");
      }
      System.out.println(i + 1);
    }

  }

  public void placeCARRIER()
  {
    Field f = new Field();
    System.out.println("Where would you like to place the CARRIER");
    System.out.println("Choose a line from 1-10");

    int place = scan.nextInt();

    // ex 5, should print on ln 4..
    int w = place - 1;
    String test = "░";
    String carrier = Carrier[1];

    System.out.println();
    System.out.println();

    for (int x = 0; x &lt; letters.length; x++)
    {
      System.out.print(letters[x] + " │");
    }
    System.out.println();
    for (int i = 0; i &lt; board.length; i++)
    {
      for (int j = 0; j &lt; board[i].length; j++)
      {

        board[i] [j] = test;
        int x = 0;
        for(int q = 0; q &lt;= w; q++)
        {
          for (int p = 0; p &lt;= Carrier.length - 1; p++)
          {
            board[w] [p] = carrier; //make q 5 somehoww...
          }
        }
        //board[w] [x+1] = carrier;
        System.out.print(board[i] [j] + "  ");
      }
      System.out.println(i + 1);
    }
    System.out.println();
    System.out.println();
    System.out.println("Would you like to move the CARRIER over?");
    System.out.println("If you want to roatae your ship, simply put 0 for now");
    System.out.println();
    System.out.println("1 == YES");
    System.out.println("2 == NO");

    int choice = scan.nextInt();

    if (choice == 1)
    {
      System.out.println();
      System.out.println("How many spaces would you like to move it over?");
      System.out.println("Enter a number up to 5");

      int place2 = scan.nextInt();
      // ex 5, should print on ln 4..
      int z = place2;

      for (int x = 0; x &lt; letters.length; x++)
      {
        System.out.print(letters[x] + " │");
      }
      System.out.println();
      for (int i = 0; i &lt; board.length; i++)
      {
        for (int j = 0; j &lt; board[i].length; j++)
        {

          board[i] [j] = test;
          int x = 0;
          for(int q = 0; q &lt;= w; q++)
          {
            for (int p = 0; p &lt;= Carrier.length - 1; p++)
            {
              board[w] [p + z] = carrier;
            }
          }
          //board[w] [x+1] = carrier;
          System.out.print(board[i] [j] + "  ");
        }
        System.out.println(i + 1);
      }

      System.out.println("Now, do you want to rotate your ship?");
      System.out.println("This will rotate the ship at the first point -90 Degrees if there is enough");
      System.out.println("room on the top, otherwise, it will rotate it -90 Degrees from the last point");
      System.out.println("on the A-1 axis going diagonally");
      System.out.println();
      System.out.println("1 == YES");
      System.out.println("2 == NO");
      System.out.println();

      int choice2 = scan.nextInt();

      if (choice2 == 1)
      {
        for (int x = 0; x &lt; letters.length; x++)
        {
          System.out.print(letters[x] + " │");
        }
        System.out.println();
        for (int i = 0; i &lt; board.length; i++)
        {
          for (int j = 0; j &lt; board[i].length; j++)
          {

            board[i] [j] = test;
            int x = 0;
            for(int q = 0; q &lt;= w; q++)
            {
              for (int p = 0; p &lt;= Carrier.length; p++)
              {
                board[p + z - 1] [w] = carrier;
              }
            }
            //board[w] [x+1] = carrier;
            System.out.print(board[i] [j] + "  ");
          }
          System.out.println(i + 1);
        }
      }

      if (choice2 == 2)
      {
        //f.placeBATTLESHIP();
      }
    }

    if (choice == 2)
    {
      //f.placeBATTLESHIP();
    }
    f.placeBATTLESHIP();
  }

  public void placeBATTLESHIP()
  {
    //print the array from the method above here

    System.out.println();
    System.out.println("Now, where would you like to place your BATTLESHIP?");
    System.out.println();





    int place = scan.nextInt();

    // ex 5, should print on ln 4..
    int w = place - 1;
    String test = "░";
    String battleship = BattleShip[1];

    System.out.println();
    System.out.println();

    for (int x = 0; x &lt; letters.length; x++)
    {
      System.out.print(letters[x] + " │");
    }
    System.out.println();
    for (int i = 0; i &lt; board.length; i++)
    {
      for (int j = 0; j &lt; board[i].length; j++)
      {

        board[i] [j] = test;
        int x = 0;
        for(int q = 0; q &lt;= w; q++)
        {
          for (int p = 0; p &lt;= BattleShip.length - 1; p++)
          {
            board[w] [p] = battleship; //make q 5 somehoww...
          }
        }
        //board[w] [x+1] = battleship;
        System.out.print(board[i] [j] + "  ");
      }
      System.out.println(i + 1);
    }

  }
}
</code></pre>
