Java String Capitalize Capitalize(String val)

Here you can find the source of Capitalize(String val)

Description

Capitalize

License

LGPL

Declaration

public static String Capitalize(String val) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static String Capitalize(String val) {
        String returnVal = "";
        if (val.length() > 0)
            returnVal = val.substring(0, 1).toUpperCase() + val.substring(1, val.length());
        return returnVal;

    }//  ww  w . ja  v  a  2s. com
}

Related

  1. capitalize(String text)
  2. capitalize(String text)
  3. capitalize(String texte)
  4. capitalize(String to_capitalize)
  5. capitalize(String token)
  6. capitalize(String value)
  7. capitalize(String value)
  8. capitalize(String value)
  9. capitalize(String value)