Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. package textExcel;
  2.  
  3. // Update this file with your own code.
  4.  
  5. public class Spreadsheet implements Grid {
  6. //final static
  7. private int rows = 20;
  8. private int cols = 12;
  9.  
  10. public Spreadsheet() {
  11. Cell[][] array = new EmptyCell[20][12];
  12. }
  13.  
  14. public String processCommand(String command)
  15. {
  16. // TODO Auto-generated method stub
  17. System.out.println("help");
  18. return "";
  19. }
  20.  
  21. @Override
  22. public int getRows() {
  23. return this.rows;
  24. }
  25.  
  26. @Override
  27. public int getCols() {
  28. return this.cols;
  29. }
  30.  
  31. @Override
  32. public Cell getCell(Location loc)
  33. {
  34. // TODO Auto-generated method stub
  35. return null;
  36. }
  37.  
  38. @Override
  39. public String getGridText() {
  40. String line = " |A |B |C |D |E |F |G |H |I |J |K |L |";
  41. int length = line.length();
  42. for (int n = 1; n < 10; ++n) {
  43. line = line + "\n" + n + " | | | | | | | | | | | | |";
  44. }
  45. for (int n = 10; n < 21; ++n) {
  46. line = line + "\n" + n + " | | | | | | | | | | | | |";
  47.  
  48. }
  49. return line;
  50. }
  51.  
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement