diff --git a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java index 32f00bb..416e81a 100644 --- a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java +++ b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java @@ -52,7 +52,7 @@ public class Spreadsheet { public String get(String cellName) { cellName = cellName.toUpperCase(); - return get(getRow(cellName), getCol(cellName)); + return get(getRow(cellName)-1, getCol(cellName)-1); } public String getCellName(int row, int col) { @@ -70,7 +70,7 @@ public class Spreadsheet { public void put(String cellName, String value) { cellName = cellName.toUpperCase(); - put(getRow(cellName), getCol(cellName), value); + put(getRow(cellName)-1, getCol(cellName)-1, value); } private int getCol(String cellName) { @@ -306,10 +306,10 @@ public class Spreadsheet { Arrays.fill(frequency,1); ArrayList relativeFrequency = new ArrayList<>(); double mem = 0; - + System.out.println(cellNames); for(int i = 0; i< cellNames.size(); i++) { for(int t = 0; t