Skip to content
Snippets Groups Projects

Master

Closed petter.hoff requested to merge petter.hoff/lab-3:master into master
5 files
+ 92
9
Compare changes
  • Side-by-side
  • Inline
Files
5
package no.uib.inf101.calculator.operations;
public class Addition implements Operator {
public String getSymbol() {
return "+";
}
public String getDescription() {
return "Addition: \"Combine two numbers to find their total or sum.\"";
}
public double calculate(double num1, double num2) {
return num1 + num2;
}
}
Loading