Skip to content

Instantly share code, notes, and snippets.



Last active Jun 16, 2017
What would you like to do?
Subtract Operation for the Countdown Math Game on the SSaurel's Channel
package com.ssaurel.countdowngame;
public class Subtract implements Operation {
public int eval(int x, int y) {
if (x < y) {
return y - x;
} else {
return x - y;
public String symbol() {
return "-";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment