int x = 67; int y = 23; int max = Math.max(x, y); // max is 67 int min = Math.min(x, y); // min is 23