Created
October 8, 2012 22:01
-
-
Save bkleinen/3855274 to your computer and use it in GitHub Desktop.
Info3Ex1WhiteboxTest
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
// Code for White-box test exercise | |
public static int absoluteValueOf (int x) { | |
if (x < -1) | |
return -x; | |
else | |
return x; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment