code: public static boolean scan(final char[] input)
  	{
  
  		int surLow = 0xD800;
  		int surHgh = 0xDFFF;
  
  		int end = input.length;
  		for (int i = 0; i < end; i++) {
  			if ((int) input[i] >= surLow && input[i] <= surHgh) {
  				return true;
  			}
  		}
  
  		return false;
  	}
docs: Returns whether a surrogate character was contained in the specified
  input.
  
  @param input
  input
  @return if a surrogate character was contained or not