Here you can find the source of capitalizeMethodName(String methodName)
methodName
.
Parameter | Description |
---|---|
methodName | a parameter |
public static String capitalizeMethodName(String methodName)
//package com.java2s; public class Main { /**/*from w w w . ja v a2 s . com*/ * This method capitalized the first character of <code>methodName</code>. * <p/> * * eg. * <pre> * capitalizeMethodName("someMethod"); * </pre> * * will return "SomeMethod". * * @param methodName * @return */ public static String capitalizeMethodName(String methodName) { assert (methodName != null); return methodName = methodName.substring(0, 1).toUpperCase() + methodName.substring(1); } }