public static char valueAsChar(String key,char defaultVal){
  String val=valueFor(key);
  if (val == null) {
    return defaultVal;
  }
  if (val.length() > 1) {
    XRLog.exception("Property '" + key + "' was requested as a character. The value of '"+ val+ "' is too long to be a char. Returning only the first character.");
  }
  return val.charAt(0);
}

public static char valueAsChar ( String key , char defaultVal ) { String val = valueFor ( key ) ; if ( val == null ) { return defaultVal ; } if ( val . length ( ) > 1 ) { XRLog . exception ( "Property '" + key + "' was requested as a character. The value of '" + val + "' is too long to be a char. Returning only the first character." ) ; } return val . charAt ( 0 ) ; }
returns the value for key in the configuration as a character , or a default value if not found . a warning is issued to the log if the property is not defined , or if the configuration value is too long to be a char . if the configuration value is longer than a single character , only the first character is returned .
