ppj/dev/pain/Calculator.java
2024-06-24 23:29:41 +02:00

22 lines
556 B
Java

/*
* TASK 10
* archived at https://git.femboy.science/femsci/ppj/src/branch/task/10
* by femsci
*/
package dev.pain;
public class Calculator extends CalculatingDevice {
public Calculator(String name) {
super(name);
}
@Override
public String calculate(double x, double y) {
// for the order of writing, stat and check mtime
// 1. wtf why reparse it ?????
// 2. oh ok just appending, still weird; meow~
return String.format("%s; %,.1f-%,.1f=%,.1f", super.calculate(x, y), x, y, x - y);
}
}