public static int abs(int a) {
        if (a < 0) {
            return -a;
        } else {
            return a;