1
0
Fork 0

Compare commits

..

No commits in common. "7472ee85e822f4876017059494bd27163dc5fad7" and "df3bb6b59b96e2524e8eb0e33be458459c381271" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View File

@ -24,7 +24,7 @@ public class Axel {
System.out.println(spr); System.out.println(spr);
while(true){ while(true){
System.out.println("Please enter the cell name (e.g. D8, G5): "); System.out.println("Please enter the cell name: ");
String cellName = keyboard.nextLine(); String cellName = keyboard.nextLine();
System.out.println("Please enter your value or your formula: "); System.out.println("Please enter your value or your formula: ");

View File

@ -6,7 +6,6 @@ import java.io.PrintWriter;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
/** /**
* A simplified spreadsheet class for the PR1 programming lab at Hochschule Mannheim. * A simplified spreadsheet class for the PR1 programming lab at Hochschule Mannheim.
* One aspect worth mentioning is that it only supports long numbers, not doubles. * One aspect worth mentioning is that it only supports long numbers, not doubles.
@ -63,8 +62,6 @@ public class Spreadsheet {
} }
private int getRow(String cellName) { private int getRow(String cellName) {
if(cellName.length()==3){
return Integer.parseInt(cellName.substring(1))-1;}
return cellName.charAt(1) - '1'; return cellName.charAt(1) - '1';
} }
@ -75,7 +72,7 @@ public class Spreadsheet {
* A method for reading in data from a CSV file. * A method for reading in data from a CSV file.
* @param path The file to read. * @param path The file to read.
* @param separator The char used to split up the input, e.g. a comma or a semicolon. * @param separator The char used to split up the input, e.g. a comma or a semicolon.
* @param startCellName The upper left cell where data from the CSV file should be inserted. * @param starCellName The upper left cell where data from the CSV file should be inserted.
* @return Nothing. * @return Nothing.
* @exception IOException If path does not exist. * @exception IOException If path does not exist.
*/ */