Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
StatelessCalculator.java
package org.rondadev.samples;
/**
* @author rondadev
*
*/
public class StatelessCalculator {
public double add(double a, double b) {
return a + b;
}
public double subtract(double a, double b) {
return a - b;
}
public double multiply(double a, double b) {
return a * b;
}
public double divide(double a, double b) {
return a / b;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.