Skip to content

Commit

Permalink
Adding implementation for profoundMathStatment method required for im…
Browse files Browse the repository at this point in the history
…plementing MathStatement interface into ExtremeSubtraction class
  • Loading branch information
SteveLocke committed Mar 3, 2020
1 parent 24d7e84 commit 1680f14
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.apache.commons.lang3.math;

public class ExtremeSubtraction {
public class ExtremeSubtraction implements MathStatement{

private int x;
private int y;
Expand All @@ -13,4 +13,9 @@ public ExtremeSubtraction(int x, int y) {
public int extremeSubtract() {
return this.x - this.y;
}

@Override
public String profoundMathStatement() {
return "2 - 2 is also 4 as well!? No just kidding. It's 0";
}
}

0 comments on commit 1680f14

Please sign in to comment.