String.toUpperCase()

Signature

String toUpperCase (String s1)

Domain

action, condition

Description

Converts all of the characters in the String passed to upper case using the rules of the default locale.

Parameters

NameTypeDescription
s1StringA String to convert to upper case.

Returns

TypeDescription
StringA String identical to the String passed in except that all chars have been converted to upper case.

Cautions

none

Example


String result = String.toUpperCase ("This is a test");

Result is:
result contains: "THIS IS A TEST"