/*----------------------------------------------------------
  Square.java
  This class contains methods to handle a 2-dimensional
  square array of characters, which should be declared
  as a global variable in this class.
----------------------------------------------------------*/
import java.util.*;

public class Square {
    
    /*------------------------------------------------------
      declare any global constants here
      ----------------------------------------------------*/
    

    /*------------------------------------------------------
      declare any global variables here
      ----------------------------------------------------*/


    /*------------------------------------------------------
      write the constructor... 
      hint: pass the size of the 2-dimensional array from
      the calling method.
      ----------------------------------------------------*/
    public Square( int size ) {

    } // end of Square constructor

    
    /*------------------------------------------------------
      write the init() method, which initializes the 
      2-dimensional array by filling it with randomly 
      chosen lower case letters.
      ----------------------------------------------------*/
    public void init() {

    } // end of init()
    

    /*------------------------------------------------------
      write the print() method, which displays the content
      of the 2-dimensional array on the screen
      ----------------------------------------------------*/
    public void print() {

    } // end of print()



    /*------------------------------------------------------
      write the findInRow() method, which takes one 
      string argument and returns the index of the first
      row in the 2-dimensional array in which the string 
      is found; 
      or if the string is not found, then it returns -1.
      ----------------------------------------------------*/
    public int findInRow( String s ) {

    } // end of findInRow()


    /*------------------------------------------------------
      write the findInColumn() method, which takes one 
      string argument and returns the index of the first
      column in the 2-dimensional array in which the string 
      is found; 
      or if the string is not found, then it returns -1.
      ----------------------------------------------------*/
    public int findInColumn( String s ) {

    } // end of findInColumn()


    /*------------------------------------------------------
      write the replaceInRow() method, which replaces the 
      argument string s in the i-th row of the 
      2-dimensional array with '.' characters
      ----------------------------------------------------*/
    public void replaceInRow( int i,String s ) {

    } // end of replaceInRow


    /*------------------------------------------------------
      write the replaceInColumn() method, which replaces the 
      argument string s in the j-th column of the 
      2-dimensional array with '.' characters
      ----------------------------------------------------*/
    public void replaceInColumn( int j,String s ) {

    } // end of replaceInColumn


} // end of class Square
