Here you can find the source of capitalizeHeadingCharacter(final String value)
public static String capitalizeHeadingCharacter(final String value)
//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; } }