Subato

ButtonLogic 3

class FactorialLogic extends ButtonLogic {
  @Override public String getButtonLabel(){
    return "Fakultät";
  }
  @Override public String eval(String x){
    return BigIntegerFactorial.factorial(Long.parseLong(x)).toString();
  }

  public static void main(String[] args){
    //new Dialogue(new FactorialLogic());
    new ConsoleDialogue(new FactorialLogic()).run();
  }
}