Android String Capitalize capitalize(String string)

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

Description

capitalize

Declaration

private static String capitalize(String string) 

Method Source Code

//package com.java2s;

public class Main {
    private static String capitalize(String string) {
        if (string.length() > 1)
            return string.substring(0, 1).toUpperCase()
                    + string.substring(1);
        return "";
    }/*from w  ww . ja  va 2s  .  c  o  m*/
}

Related

  1. capitalizeFirst(String i, Locale l)
  2. capitalize(String str)
  3. capitalize(String s)
  4. capitalize(final String name)
  5. decapitalize(final String name)
  6. decapitalize(String string)
  7. capitalizeFirstLetter(String str)
  8. capitalize(String line)
  9. capitalize(String s)