Last active
November 13, 2016 16:50
-
-
Save thombergs/2230b9de66dacf1be3f448ee476b5b2c to your computer and use it in GitHub Desktop.
This file contains hidden or 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{ | |
| public int absoluteSum(int a, int b){ | |
| if(a < 0) a = -a; | |
| if(b < 0) b = -b; | |
| return a + b; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment