Java String Upper Case toUpperCase(String src)

Here you can find the source of toUpperCase(String src)

Description

Safely convert the string to uppercase.

License

Apache License

Return

upper case representation of the String; or null if the input string is null.

Declaration

public static String toUpperCase(String src) 

Method Source Code

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

public class Main {
    /**//from   w w w.jav a  2s .co m
     * Safely convert the string to uppercase.
     *
     * @return upper case representation of the String; or null if
     *         the input string is null.
     */
    public static String toUpperCase(String src) {
        if (src == null) {
            return null;
        } else {
            return src.toUpperCase();
        }
    }
}

Related

  1. toUpperCase(String s)
  2. toUpperCase(String s)
  3. toUpperCase(String s)
  4. toUpperCase(String s, int start, int end)
  5. toUpperCase(String source)
  6. toUpperCase(String str)
  7. toUpperCase(String str)
  8. toUpperCase(String str)
  9. toUpperCase(String str)