Java String Title Case toTitleCase(String string)

Here you can find the source of toTitleCase(String string)

Description

to Title Case

License

Open Source License

Declaration

public static String toTitleCase(String string) 

Method Source Code

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

public class Main {
    public static String toTitleCase(String string) {
        return string.substring(0, 1).toUpperCase() + string.substring(1, string.length());
    }/*from   w w w  .ja va2 s  .  c  o  m*/
}

Related

  1. toTitleCase(String s)
  2. toTitleCase(String s)
  3. toTitleCase(String sIn)
  4. toTitleCase(String str)
  5. toTitleCase(String str)
  6. toTitleCase(String string)
  7. toTitleCase(String text)
  8. toTitleCase(String title)
  9. toTitleCase2(String string, String separators)