Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to find absolute difference in java

//step 1:
import java.lang.Math;

//step 2:
int n = -7;
Math.abs(n)
//output = 7
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #find #absolute #difference #java
ADD COMMENT
Topic
Name
2+8 =