Upper and Lower Case

The below example demonstrates how to convert a string to upper case. In the below example String changecase has been assigned a value of smallcase.The String is converted to uppercase by calling the method toUpperCase() of String Class.