Java String Start With startWithLowerCase(String methodName)

Here you can find the source of startWithLowerCase(String methodName)

Description

start With Lower Case

License

Apache License

Declaration

public static String startWithLowerCase(String methodName) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String startWithLowerCase(String methodName) {
        if (methodName.length() > 1 && Character.isUpperCase(methodName.charAt(1)))
            return methodName;
        char firstChar = Character.toLowerCase(methodName.charAt(0));
        return firstChar + methodName.substring(1);
    }// w  ww. ja va  2s .c  o  m
}

Related

  1. startWithAorAn(String str)
  2. startWithBOM(byte[] array)
  3. startWithIgnoreCase(CharSequence str, CharSequence prefix)
  4. startWithIgnoreCase(String str, String prefix)
  5. startWithLowerCase(String in)
  6. startWithProtocol(String input)
  7. startWithProtocol(String input)
  8. startWithRoot(String path)
  9. startWithUppercase(String name)