code: public static final void setValue(Object bean, String property, Object v)
      {
          Object vv = BeanHelper.getValue(bean, property);
          if (v != null && v.getClass().isArray() &&  vv != null && (vv instanceof Collection))
          {   // array assignment to Collection
              Collection col = (Collection) vv;
              Class[] pt = BeanHelper.getParameterTypes(bean, property);
              col.clear();
              int len = Array.getLength(v);
              for (int ii=0;ii<len;ii++)
              {
                  col.add(ConvertUtility.convert(pt[0], Array.get(v, ii)));
              }
          }
          else
          {
              if (v != null && v.getClass().isArray())
              {   // array with single menber
                  if (Array.getLength(v) == 1)
                  {
                      v = Array.get(v, 0);
                  }
              }
              Class<?> type = BeanHelper.getType(bean, property);
              if (v != null)
              {
                  v = ConvertUtility.convert(type, v);
              }
              Object value = v;
              doFor(
                  bean, 
                  property, 
                  type,
                  (Object a, int i)->{Array.set(a, i, value);return null;},
                  (List l, int i)->{l.set(i, value);return null;},
                  (Object b, Class c, String p)->{try
                  {
                      c.getField(p).set(b, value);return null;
                  }
                  catch (IllegalArgumentException | IllegalAccessException ex)
                  {
                      throw new IllegalArgumentException(ex);
                  }
                  }, 
                  (Object b, Method m)->{try
                  {
                      m.invoke(b, value);return null;
                  }
                  catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException ex)
                  {
                      throw new IllegalArgumentException(ex);
                  }
                  });
          }
      }
docs: Set value
  @param bean
  @param property
  @param v