Java String Proper Case toProperCase(String s)

Here you can find the source of toProperCase(String s)

Description

To proper case.

License

Apache License

Parameter

Parameter Description
s the s

Return

the string

Declaration

private static String toProperCase(String s) 

Method Source Code

//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();
    }
}

Related

  1. toProperCase(final String s)
  2. toProperCase(final String string)
  3. toProperCase(String s)
  4. toProperCase(String s)
  5. toProperCase(String s)
  6. toProperCase(String text)
  7. toProperCase(String text)