Here you can find the source of toProperCase(String s)
Parameter | Description |
---|---|
s | the s |
private static String toProperCase(String s)
//package com.java2s; //License from project: Apache License public class Main { /**//from w w w.j a va2s . c o m * To proper case. * @param s * the s * @return the string */ private static String toProperCase(String s) { return s.substring(0, 1).toUpperCase() + s.substring(1).toLowerCase(); } }