How to single-out a cell in a table?
<p>Im trying to be able to find a cell that the user inputs. I have made table thats like excel and I want to know how to find the cell, of what the user inputs. For example, if the user inputs 1a I would read through my table and find 1a. Thats what I need help. I need to know how to do this because later I need to know how to input numbers into that singled-out cell like if 1a =7 i would go to the 1a cell and inside that cell print out 7.</p>

<p>This is the code that I have so far:
public class Spreadsheat {</p>

<pre><code>private int xVal = 137;
private int yVal = 1;
private int[][] table = new int [20][20];
private char yaxis = 'A';
private int xaxis = 0;


public Spreadsheat(){
    for(int i = 0; i &lt; xVal; i++){
        System.out.print("-");
    }

    System.out.println();
    System.out.print(" |");
    for(int i = 0; i &lt; 17; i++){
        System.out.print("| " + yaxis + "\t" + "|" );
        yaxis = (char) (yaxis + 1);
    }

    System.out.println();
    for(int i = 0; i &lt; xVal; i++){
        System.out.print("-");
    }

    System.out.println();
    for(int j = 0; j &lt;10;j++){
        System.out.print(" " + xaxis + "|");
        for(int i = 0; i &lt; 17; i++){
            System.out.print("|" + "\t" + "|" );
        }

        System.out.println();
        xaxis = xaxis + 1;
    }
}
</code></pre>
