Here you can find the source of camelCaseToDotNotation(String string)
static String camelCaseToDotNotation(String string)
//package com.java2s; //License from project: Apache License public class Main { static String camelCaseToDotNotation(String string) { StringBuilder sb = new StringBuilder(); char last = 0; for (int i = 0; i < string.length(); i++) { char c = string.charAt(i); if (Character.isUpperCase(c) && Character.isLowerCase(last)) { sb.append("."); }/*from www . ja v a2 s . com*/ last = c; sb.append(Character.toLowerCase(c)); } return sb.toString(); } }