Java String Capitalize capitalizeToUpper(String line)

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

Description

capitalize To Upper

License

LGPL

Declaration

public static String capitalizeToUpper(String line) 

Method Source Code

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

public class Main {
    public static String capitalizeToUpper(String line) {
        return Character.toUpperCase(line.charAt(0)) + line.substring(1);
    }//  w ww . j  a  v  a 2s  .  co m
}

Related

  1. capitalizeString(String string)
  2. capitalizeString(String string)
  3. capitalizeString(String string)
  4. capitalizeString(String text, boolean replaceUnderscore)
  5. capitalizeString(String toCapitalize)
  6. toCapitalized(Object obj)