import java.util.ArrayList; public class Cell { /** * The status of the Cell. */ private boolean alive; /** * Constructs a dead cell. */ public Cell() { } /** * Constructs a cell with the specified status. * * @param status a boolean to specify if the Cell is initially alive */ public Cell(boolean status) { } /** * Returns whether the cell is currently alive. * * @return whether the cell is currently alive */ public boolean getAlive() { } /** * Sets the current status of the cell to the specified status. * * @param status a boolean to specify if the Cell is alive or dead */ public void setAlive(boolean status) { } /** * Updates the state of the Cell. * * If this Cell is alive and if there are 2 or 3 alive neighbors, * this Cell stays alive. Otherwise, it dies. * * If this Cell is dead and there are 3 alive neighbors, * this Cell comes back to life. Otherwise, it stays dead. * * @param neighbors An ArrayList of Cells */ public void updateState(ArrayList neighbors) { } /** * Returns a String representation of this Cell. * * @return 1 if this Cell is alive, otherwise 0. */ public String toString() { } }