Java String Capitalize capitalize(String name)

Here you can find the source of capitalize(String name)

Description

capitalize

License

Open Source License

Declaration

public static String capitalize(String name) 

Method Source Code

//package com.java2s;

public class Main {

    public static String capitalize(String name) {
        if (name == null || name.length() == 0) {
            return name;
        }/*from   w  w  w  . j  ava 2  s . c  o  m*/
        return name.substring(0, 1).toUpperCase() + name.substring(1);
    }
}

Related

  1. capitalize(String inputString)
  2. capitalize(String line)
  3. capitalize(String membername)
  4. capitalize(String message)
  5. capitalize(String name)
  6. capitalize(String name)
  7. capitalize(String name)
  8. capitalize(String name)
  9. capitalize(String name)