Is there any way to find the absolute value of a number without using the Math.abs() method in java.
You can use :
abs_num = (num < 0) ? -num : num;