I have to create a Calculator in Java, based on this Interface.
public interface CalculatorIF {
int add(int x, int y);
int sub(int x, int y);
int mult(int x, int y);
//double div(int x, int y);
//int sqrt(int x);
}
But for every Method, I need pre-post conditions. I really need help for pre-conditions, because I can't imagine even a single one which makes sense and isn't already handled by Java.
EDIT: division and sqrt are clear to me, but I need some Ideas for add, sub and mult.