Here you can find the source of toProperCase(final String s)
Parameter | Description |
---|---|
s | the String to convert to "ProperCase" . |
public static String toProperCase(final String s)
//package com.java2s; //License from project: Apache License public class Main { /**// ww w. ja va2 s.c o m * Convert to {@literal "Proper case"}; capital first letter, lowercase suffix. * * @param s the {@code String} to convert to {@literal "ProperCase"}. * @return the {@code String s} converted to {@literal "ProperCase"}. */ public static String toProperCase(final String s) { return s.substring(0, 1).toUpperCase() + s.substring(1).toLowerCase(); } }