Here you can find the source of toLowerCase(String candidate)
Parameter | Description |
---|---|
candidate | a parameter |
public static String toLowerCase(String candidate)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); public class Main { /**/* w ww . ja va 2s .c o m*/ * Wraps to LowerCase first char in candidate * * @param candidate * * @return candidate */ public static String toLowerCase(String candidate) { if (candidate.length() >= 1) return Character.toLowerCase(candidate.charAt(0)) + candidate.substring(1); return candidate; } }