将字符串第一个字符转换为大写

 

private static String getMethodName(String fieldName) {
return "get" + fieldName.substring(0, 1).toUpperCase()
+ fieldName.substring(1);
}

 

 

 

posted @ 2013-02-17 10:48  刀口舔蜜  阅读(420)  评论(0编辑  收藏  举报