Java String Uncapitalize unCapitalize(String s)

Here you can find the source of unCapitalize(String s)

Description

un Capitalize

License

Open Source License

Declaration

public static String unCapitalize(String s) 

Method Source Code

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

public class Main {
    public static String unCapitalize(String s) {
        if (s == null)
            return null;
        if (s.isEmpty())
            return s;
        if (s.length() == 1)
            return s.toLowerCase();
        return s.substring(0, 1).toLowerCase() + s.substring(1);
    }/*from  ww  w.  j  av  a 2  s  . c  o  m*/
}

Related

  1. unCapitalize(String data, int pos)
  2. uncapitalize(String input)
  3. uncapitalize(String name)
  4. uncapitalize(String name)
  5. uncapitalize(String s)
  6. uncapitalize(String s)
  7. uncapitalize(String s)
  8. uncapitalize(String source)
  9. unCapitalize(String str)