Spreadsheet getRow 3 character fix.
parent
202321681b
commit
f756a7cd67
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue