public static int max(int x, int y) { if (x > y) { return x; } else { return y; } // end if } // end max