Java String Capitalize capitalise(String toCapitalise)

Here you can find the source of capitalise(String toCapitalise)

Description

capitalise

License

Open Source License

Declaration

public static String capitalise(String toCapitalise) 

Method Source Code

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

public class Main {
    public static String capitalise(String toCapitalise) {
        return toCapitalise.replaceFirst("" + toCapitalise.charAt(0),
                "" + Character.toUpperCase(toCapitalise.charAt(0)));
    }/*ww  w .  j  av a  2 s  .co m*/
}

Related

  1. capitalise(String str)
  2. capitalise(String str)
  3. capitalise(String string)
  4. capitalise(String string)
  5. capitalise(String string)
  6. capitaliseAndCheckBases(byte[] bases, boolean strict)
  7. capitalised(String name)
  8. capitaliseName(String name)
  9. capitalizar(String s)