22:14

Max and Min Number

Posted by Mitesh Patel |


class MaxMin {

    public static void main(String args[]) {

        int x = Integer.valueOf(args[0]);
        int y = Integer.valueOf(args[1]);


        if (x < y) {
            System.out.println("Y is max" + y);
        } else {
            System.out.println("X is max" + x);
        }

    }
}

0 comments:

Post a Comment

Subscribe