Skip to content

Instantly share code, notes, and snippets.

@rpau
Last active April 1, 2018 11:38
Show Gist options
  • Save rpau/17fc49a17b6e1d8e325003b31d19c0bd to your computer and use it in GitHub Desktop.
Save rpau/17fc49a17b6e1d8e325003b31d19c0bd to your computer and use it in GitHub Desktop.
public class Calculator {
private double total = 0;
public int getTotal(){
return total;
}
public void pow(double value) {
total = Math.pow(total, value);
}
public void sum(double value) {
total = total + value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment