Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package textExcel;
- // Update this file with your own code.
- public class Spreadsheet implements Grid {
- //final static
- private int rows = 20;
- private int cols = 12;
- public Spreadsheet() {
- Cell[][] array = new EmptyCell[20][12];
- }
- public String processCommand(String command)
- {
- // TODO Auto-generated method stub
- System.out.println("help");
- return "";
- }
- @Override
- public int getRows() {
- return this.rows;
- }
- @Override
- public int getCols() {
- return this.cols;
- }
- @Override
- public Cell getCell(Location loc)
- {
- // TODO Auto-generated method stub
- return null;
- }
- @Override
- public String getGridText() {
- String line = " |A |B |C |D |E |F |G |H |I |J |K |L |";
- int length = line.length();
- for (int n = 1; n < 10; ++n) {
- line = line + "\n" + n + " | | | | | | | | | | | | |";
- }
- for (int n = 10; n < 21; ++n) {
- line = line + "\n" + n + " | | | | | | | | | | | | |";
- }
- return line;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement