Android String Capitalize capitalizeFirst(String i, Locale l)

Here you can find the source of capitalizeFirst(String i, Locale l)

Description

capitalize First

Declaration

public static String capitalizeFirst(String i, Locale l) 

Method Source Code

//package com.java2s;
import java.util.Locale;

public class Main {
    public static String capitalizeFirst(String i, Locale l) {
        return i.substring(0, 1).toUpperCase(l)
                + i.substring(1).toLowerCase(l);
    }/*from ww  w  .ja  va2 s . c o  m*/
}

Related

  1. uncapitalize(String str)
  2. capitalize(String s)
  3. capitalizeFirstLetter(String src)
  4. capitalize(String s)
  5. capitalize(String str)
  6. capitalize(String str)
  7. capitalize(String s)
  8. capitalize(final String name)
  9. decapitalize(final String name)