Java String Upper Case toUpperCase(String from)

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

Description

Returns a UPPER CASE copy of the given string from or NULL if the supplied parameter is NULL.

License

Open Source License

Parameter

Parameter Description
from the string to get UPPER representation from.

Return

a UPPER CASE copy of the given string from or NULL if the supplied parameter is NULL.

Declaration

public static String toUpperCase(String from) 

Method Source Code

//package com.java2s;

public class Main {
    /**//ww  w.  j  a v  a  2  s.com
     * Returns a UPPER CASE copy of the given string <code>from</code> or NULL if the supplied parameter is NULL.
     *
     * @param from the string to get UPPER representation from.
     * @return a UPPER CASE copy of the given string <code>from</code> or NULL if the supplied parameter is NULL.
     */
    public static String toUpperCase(String from) {

        if (from == null) {
            return null;
        }

        return from.toUpperCase();
    }
}

Related

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