Java String Camel Case To camelCaseToWords(String data)

Here you can find the source of camelCaseToWords(String data)

Description

camel Case To Words

License

Open Source License

Declaration

public static String camelCaseToWords(String data) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String camelCaseToWords(String data) {
        final StringBuilder stringBuilder = new StringBuilder();
        for (String w : data.split("(?<!(^|[A-Z]))(?=[A-Z])|(?<!^)(?=[A-Z][a-z])")) {
            stringBuilder.append(w).append(' ');
        }//  w  ww  .  j a v a  2 s.com
        return stringBuilder.toString().trim();
    }
}

Related

  1. camelCaseToPretty(String camelCase)
  2. camelCaseToSeparatedWords(String ccString, String separator)
  3. camelCaseToSeparatorCase(String s, String separator)
  4. camelCaseToSpacedString(String camel)
  5. camelcaseToUppercase(String camelCase)
  6. camelCaseUnderscores(String str)
  7. camelHump(String str)
  8. camelHumpsToWords(String camelHumps)
  9. camelhumpToUnderline(String str)