1
0
Fork 0

Spreadsheet getRow 3 character fix.

pull/1/head
selim 2023-12-26 03:25:09 +01:00
parent 202321681b
commit f756a7cd67
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ public class Spreadsheet {
} }
private int getRow(String cellName) { private int getRow(String cellName) {
if(cellName.length()>2)
return Integer.parseInt(""+cellName.charAt(1)+cellName.charAt(2)) - 1;
return cellName.charAt(1) - '1'; return cellName.charAt(1) - '1';
} }