Here you can find the source of toUpperCase(String from)
from
or NULL if the supplied parameter is NULL.
Parameter | Description |
---|---|
from | the string to get UPPER representation from. |
from
or NULL if the supplied parameter is NULL.
public static String toUpperCase(String from)
//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(); } }