code: public static char[] toPrimitive(Character[] array, char valueForNull) {
          if (array == null) {
              return null;
          } else if (array.length == 0) {
              return EMPTY_CHAR_ARRAY;
          }
          final char[] result = new char[array.length];
          for (int i = 0; i < array.length; i++) {
              Character b = array[i];
              result[i] = (b == null ? valueForNull : b);
          }
          return result;
      }
docs: <p>Converts an array of object Character to primitives handling <code>null</code>.</p>
  <p>
  <p>This method returns <code>null</code> for a <code>null</code> input array.</p>
  
  @param array        a <code>Character</code> array, may be <code>null</code>
  @param valueForNull the value to insert if <code>null</code> found
  @return a <code>char</code> array, <code>null</code> if null array input