how to make a number positive if it is negative in java code example Example: Make a negative number positive Java Math.abs(-5); // returns 5