package de.hs_mannheim.informatik.spreadsheet; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.PrintWriter; import java.util.Scanner; /** * Part of a simplified spreadsheet system for the PR1 programming lab at Hochschule Mannheim. * * @author Oliver Hummel */ public class Axel { public static void main(String[] args) throws FileNotFoundException { Spreadsheet spr = new Spreadsheet(10,6); @SuppressWarnings("resource") Scanner input = new Scanner(System.in); String filePath = "Axel/resources/zahlen.csv"; spr.readCsv(filePath,"A3"); System.out.println("Schreibe 'stop' zum anhalten."); do{ String command = ""; String form = ""; String cell= ""; boolean cellTRUE = true; System.out.println(spr); System.out.println("Befehl (z.B. D4_=7*6): "); command = input.nextLine(); if(command.matches("[A-Za-z][1-9][0-9]?_=" + "((((([A-Za-z][1-9][0-9]?)|([0-9]+))(\\*|\\+|\\-|\\/))*" + "(([A-Za-z][1-9][0-9]?)|([0-9]+)))|" + "((SUMME|PRODUKT|MID|STABW|MIN|MAX)\\(([A-Za-z][1-9][0-9]*\\:[A-Za-z][1-9][0-9]*)\\)))")) { for(int i = 0; i