public class OO {

  /**
   * Determine the max...
   * @param x The x value
   * @param y The y value
   * @return the maximum of x and y
   */
  public static int max(int x, int y) {
    return x>y?x:y;
  }

  /**
   * Determine the max...
   * @param a The a value
   * @param b The b value
   * @return the maximum of a and b
   */
  public static double max(double x, double y) {
    return x>y?x:y;
  }


  public static void main(String argv[]) {
    int x = 5;
    int y = 7;

    double a = 2.3;
    double b = 7.1;

    char c = 'A';

    // this is straightforward
    System.out.println("The max of: "+x +" and " + y +" is: "+max(x,y));
    // this is straightforward
    System.out.println("The max of: "+a +" and " + b +" is: "+max(a,b));
    // What is the output? Does it even compile? YES
    System.out.println("The max of: "+b +" and " + y +" is: "+max(y,b));
    // What is the output? Does it even compile? YES
    System.out.println("The max of: "+c +" and " + x +" is: "+max(c,x));

  }
}