Last active
April 1, 2018 11:38
-
-
Save rpau/17fc49a17b6e1d8e325003b31d19c0bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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