Here you can find the source of uncapitalize(String input)
Parameter | Description |
---|---|
input | a parameter |
public static String uncapitalize(String input)
//package com.java2s; //License from project: Open Source License public class Main { /**/* w w w.j a v a2 s .co m*/ * lower cases the first letter * @param input * @return */ public static String uncapitalize(String input) { if (input == null || input.isEmpty()) return input; return input.substring(0, 1).toLowerCase() + input.substring(1); } }