Java String Lower Case toLowerCase(final String s)

Here you can find the source of toLowerCase(final String s)

Description

to Lower Case

License

Open Source License

Declaration

public static String toLowerCase(final String s) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String toLowerCase(final String s) {
        return hasUpperLetter(s) ? s.toLowerCase() : s;
    }//from w  w  w  . ja  v a 2  s . co m

    public static boolean hasUpperLetter(final CharSequence s) {
        int len;
        if (null != s && (len = s.length()) != 0)
            while (len > 0)
                if (Character.isUpperCase(s.charAt(--len)))
                    return true;
        return false;
    }
}

Related

  1. toLowerCase(Enum aEnum)
  2. toLowerCase(final byte b)
  3. toLowerCase(final String s)
  4. toLowerCase(final String s)
  5. toLowerCase(final String s)
  6. toLowerCase(final String str)