Java String Upper Case toUpperCase(String pString)

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

Description

Converts a string to uppercase.

License

Open Source License

Parameter

Parameter Description
pString the string to convert

Return

the string converted to uppercase, or null if the argument was null.

Declaration

public static String toUpperCase(String pString) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from  www .  j  a v a 2 s  . c  o  m
     * Converts a string to uppercase.
     *
     * @param pString the string to convert
     * @return the string converted to uppercase, or null if the argument was
     *         null.
     */
    public static String toUpperCase(String pString) {
        if (pString != null) {
            return pString.toUpperCase();
        }
        return null;
    }
}

Related

  1. toUpperCase(final StringBuilder src)
  2. toUpperCase(String candidate)
  3. toUpperCase(String from)
  4. toUpperCase(String in)
  5. toUpperCase(String input)
  6. toUpperCase(String s)
  7. toUpperCase(String s)
  8. toUpperCase(String s)
  9. toUpperCase(String s)