java反射调用

获取属性名,将第一个字母变大写,返回字符串

 String methodName = "set"
                        + fieldName.substring(0, 1).toUpperCase()
                        + fieldName.substring(1);
原文地址:https://www.cnblogs.com/monster-jian/p/13553684.html