Here you can find the source of camelCaseToWords(String data)
public static String camelCaseToWords(String data)
//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(); } }