How to take in Strings and print it out in a cell from an excel like program?
<p>Right now I am working on a basic program that acts as excel.
I'm trying to be able to say A1 = "hi" an print out a new table and in the A1 cell have it say "hi". Right now I can only take in integers, not Strings. I also have a runner class and if that is need for you to understand my problem please ask.</p>

<p>This is my code to print out the Spreadsheet: (its kind of long)</p>

<pre><code>public class Spreadsheet {

private int xVal = 123;
private int yVal = 1;
private static Cell [][] table = new Cell [10][10];
private char yaxis = 'A';
private int xaxis = 0;

public static void changeCell(int a, int b, Value s){
    Cell newCell = new Cell();
    newCell.setValue(s);
    table[a][b] = newCell;
}

public void printAtStart(){
    for(int i = 0; i &lt; xVal; i++){
        System.out.print("-");
    }
    System.out.println();
    System.out.print("  |");
    for(int i = 0; i &lt; table.length; i++){
        System.out.print("|    " + yaxis + "     " + "|" );
        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;table.length;j++){    
        System.out.print(" " + xaxis + "|");
        for(int i = 0; i &lt; table[j].length; i++){
            table[j][i] = new Cell();
            System.out.print(""  + table[j][i] + "" );
        }
        System.out.println();
        xaxis = xaxis + 1;
    }
    yaxis = 'A';
    xaxis = 0;
}
    public void printTable(){
            for(int i = 0; i &lt; xVal; i++){
                System.out.print("-");
            }
            System.out.println();
            System.out.print("  |");
            for(int i = 0; i &lt; table.length; i++){
                System.out.print("|    " + yaxis + "     " + "|" );
                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;table.length;j++){    
                System.out.print(" " + xaxis + "|");
                for(int i = 0; i &lt; table[j].length; i++){
                    System.out.print(""  + table[j][i] + "" );
                }
                System.out.println();
                xaxis = xaxis + 1;
            }
            yaxis = 'A';
            xaxis = 0;
        }


public void clear(int a, int b){
    table[a][b] = new Cell();
}

public void setxVal(int xVal) {
    this.xVal = xVal;
}
public int getxVal() {
    return xVal;
}
public void setyVal(int yVal) {
    this.yVal = yVal;
}
public int getyVal() {
    return yVal;
}
public void setTable(Cell[][] table) {
    this.table = table;
}
public Cell[][] getTable() {
    return table;
}
}
</code></pre>
