Java String Capitalize capitalizeHeadingCharacter(final String value)

Here you can find the source of capitalizeHeadingCharacter(final String value)

Description

capitalize Heading Character

License

Open Source License

Declaration

public static String capitalizeHeadingCharacter(final String value) 

Method Source Code

//package com.java2s;
/******************************************************************************
 *
 * CoreWall / Corelyzer - An Initial Core Description Tool
 * Copyright (C) 2007 Julian Yu-Chung Chen
 * Electronic Visualization Laboratory, University of Illinois at Chicago
 *
 * This software is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either Version 2.1 of the License, or
 * (at your option) any later version./* w  w  w . jav  a2s  .c o m*/
 *
 * This software is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 * License for more details.
 *
 * You should have received a copy of the GNU Lesser Public License along
 * with this software; if not, write to the Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 * Questions or comments about CoreWall should be directed to
 * cavern@evl.uic.edu
 *
 *****************************************************************************/

public class Main {
    public static String capitalizeHeadingCharacter(final String value) {
        return value.length() > 0 ? Character.toUpperCase(value.charAt(0)) + value.substring(1) : value;
    }
}

Related

  1. capitalizedCase(CharSequence source, char... delimiters)
  2. capitalizedName(final String property)
  3. capitalizeFirst(CharSequence str)
  4. capitalizeFormat(String string)
  5. capitalizeFront(String str)
  6. capitalizeInitial(String str)
  7. capitalizeMessage(String message)
  8. capitalizeMethodName(String methodName)
  9. capitalizeName(final String name)