Java tutorial
public class Main { public static void main(String[] args) { int x = 123; int y = -123; System.out.println(Math.abs(x)); System.out.println(Math.abs(y)); System.out.println(Math.abs(-0)); } }