Java String Capitalize First capitalizeFirstChar(String s)

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

Description

capitalize First Char

License

Open Source License

Declaration

public static String capitalizeFirstChar(String s) 

Method Source Code

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

public class Main {
    public static String capitalizeFirstChar(String s) {
        return s.substring(0, 1).toUpperCase() + s.substring(1);
    }//from ww  w  .  j  ava2  s  .  c  o  m
}

Related

  1. capitalizeFirst(String toCap)
  2. capitalizeFirst(String toCapitalize)
  3. capitalizeFirstChar(final String str)
  4. capitalizeFirstChar(String name)
  5. capitalizeFirstChar(String name)
  6. capitalizeFirstCharacter(final String s)
  7. capitalizeFirstCharacter(String s)
  8. capitalizeFirstCharacter(String s)
  9. capitalizeFirstCharacter(String str)