1
0
Fork 0

Dateien nach "Axel/src/de/hs_mannheim/informatik/spreadsheet" hochladen

main
Jan Bachmann 2024-01-08 18:13:30 +01:00
parent f09c112e2c
commit 3d6e5482ec
1 changed files with 6 additions and 1 deletions

View File

@ -91,7 +91,12 @@ public class Axel {
form+=command.charAt(i); form+=command.charAt(i);
} }
} }
spr.put(cell, form); if((spr.getRow(cell)+1)<=spr.cells.length&&(spr.getCol(cell)+1)<=spr.cells[0].length) {
spr.put(cell, form);
}
else {
System.err.println("Zelle '"+ cell+ "' existiert nicht!");
}
}else if(command.matches("stop")){ }else if(command.matches("stop")){
break; break;
}else if(command.startsWith("save")){ }else if(command.startsWith("save")){