Java String Lower Case toLowerCase(String candidate)

Here you can find the source of toLowerCase(String candidate)

Description

Wraps to LowerCase first char in candidate

License

Apache License

Parameter

Parameter Description
candidate a parameter

Return

candidate

Declaration

public static String toLowerCase(String candidate) 

Method Source Code

//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;
    }
}

Related

  1. toLowerCase(final String str)
  2. toLowerCase(final String[] strings)
  3. toLowerCase(final StringBuilder src)
  4. toLowercase(int codePoint)
  5. toLowerCase(int u)
  6. toLowerCase(String input)
  7. toLowerCase(String input)
  8. toLowerCase(String name)
  9. toLowerCase(String pString)