Here you can find the source of capitalise(String line)
Parameter | Description |
---|---|
line | a parameter |
public static String capitalise(String line)
//package com.java2s; //License from project: LGPL public class Main { /**/* w ww . j av a 2 s . c om*/ * Returns the given string with the first letter capitalised * @param line * @return */ public static String capitalise(String line) { return Character.toUpperCase(line.charAt(0)) + line.substring(1); } }