Android String Capitalize capitalize(String line)

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

Description

capitalize

Declaration

public static String capitalize(String line) 

Method Source Code

//package com.java2s;

public class Main {
    public static String capitalize(String line) {
        return Character.toUpperCase(line.charAt(0)) + line.substring(1);
    }//from w w  w.j av a  2s  .c  om
}

Related

  1. capitalize(final String name)
  2. decapitalize(final String name)
  3. capitalize(String string)
  4. decapitalize(String string)
  5. capitalizeFirstLetter(String str)
  6. capitalize(String s)