Java String Suffix suffixName(String name)

Here you can find the source of suffixName(String name)

Description

suffix Name

License

Apache License

Declaration

public static String suffixName(String name) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String suffixName(String name) {
        final char first = name.charAt(0);
        if (Character.isUpperCase(first)) {
            return name;
        } else {//from   w ww.  j  a  va 2  s .  c  om
            return Character.toUpperCase(first) + name.substring(1);
        }
    }
}

Related

  1. suffix(String value, String prefix)
  2. suffix(String[] columns, String suffix)
  3. suffixClassName(String tableName)
  4. suffixes(char[] x, int[] suff)
  5. suffixLabel(String label, String tagSuffix)
  6. suffixNotNullStringOrDefault(String str, String defaultStr, String suffix)
  7. suffixWith(String receiver, char suffix, boolean ignoreCase)