Computer Applications
Describe the purpose and write the syntax of toUpperCase() function.
Java String Handling
23 Likes
Answer
It converts a string into upper case characters. If any character is already in uppercase or is a special character then it will remain same.
Syntax:
String <variable-name> = <string-variable>.toUpperCase();
Answered By
13 Likes
Related Questions
Write a statement each to perform the following task on a string:
Convert a number stored in a string variable x to double data type.
How does endsWith() and startsWith() differ? Explain with an example.
Describe the purpose and write the syntax of trim() function.
Describe the purpose and write the syntax of toLowerCase() function.