code: public static char median(final char a, final char b, final char c) {
          if ((a >= b && a <= c) || (a >= c && a <= b)) {
              return a;
          } else if ((b >= a && b <= c) || (b >= c && b <= a)) {
              return b;
          } else {
              return c;
          }
      }
docs: Gets the median of three values.
  
  @param a
  @param b
  @param c
  @return the median of the values
  @see #median(int...)