1.从数组里面找到指定的值
org.springframework.util.ObjectUtils
boolean b = ObjectUtils.containsElement(new Object[]{1,5,6,8,9,4}, 1);
2.往数组里面添加元素
org.springframework.util.ObjectUtils
Object[] objects = ObjectUtils.addObjectToArray(new Object[]{1, 5, 6, 8, 9, 4}, 1);