Android String Search firstCharUpper(String myString)

Here you can find the source of firstCharUpper(String myString)

Description

first Char Upper

License

Open Source License

Declaration

public static String firstCharUpper(String myString) 

Method Source Code

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

public class Main {
    public static String firstCharUpper(String myString) {
        if (myString != null && myString.length() > 1) {
            char[] stringArray = myString.toCharArray();
            stringArray[0] = Character.toUpperCase(stringArray[0]);
            myString = new String(stringArray);
        }/*from ww w .j av a 2 s  . c  om*/
        return myString;
    }
}

Related

  1. nestedIndexOf(final String s, final int startPos, final String open, final String close)
  2. findFirstNotOf(String str, String chars)
  3. findFirstOf(String str, String chars)
  4. findLastNotOf(String str, String chars)
  5. findLastOf(String str, String chars)
  6. lastIndexNotOf(String str, String chars, int fromIndex)