Add assert statement

This commit is contained in:
Ray
2020-08-16 10:46:39 -04:00
parent 918189ec20
commit 16057164a6
5 changed files with 20 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
package Maths;
/**
* @author PatOnTheBack
*/
public class AbsoluteValue {
public static void main(String[] args) {
assert absVal(-13) == 13;
assert absVal(0) == 0;
assert absVal(100) == 100;
int value = -34;
System.out.println("The absolute value of " + value + " is " + absVal(value));
}