In this section, you will learn how to use toUpperCase() method of the String class. We are going for using toUpperCase() method. This method is explained as follows:
Description of program:
Here, you will see the procedure of converting letters of the string in uppercase letter. So, we are using toUpperCase() method of the String class for the purpose.
The following program convert the string "india" into "INDIA" by using toUpperCase() method.
toUpperCase(): This method returns a string value.
Here is the code of this program:
Output of program:
String is : india
String in uppercase letter: INDIA
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: June 5, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles