public class MaxMinMethod { public static void main(String[] args) { // get two integer numbers int x = 60984; int y = 1000; // print the larger number between x and y System.out.println("Math.max(" + x + "," + y + ")=" + Math.max(x, y)); System.out.println("Math.min(" + x + "," + y + ")=" + Math.min(x, y)); } }
No comments:
Post a Comment