Here you can find the source of toProperCase(String s)
public static String toProperCase(String s)
//package com.java2s; //License from project: Apache License public class Main { public static String toProperCase(String s) { return s.substring(0, 1).toUpperCase() + s.substring(1).toLowerCase(); }/*www.j av a2 s .c o m*/ }