Tutorials

Java String Methods


String toUpper() method


In java toUpperCase( ) is used to convert the lowercase letters of the given String to uppercase letters.

 

Example:


public class toUpperDemo {

      public static void main(String[] args) {

            String str = "Mukesh Ti";           

            System.out.println(str.toUpperCase());
      }
}

 

OUTPUT:

MUKESH TI



Please Share this page
Views : 139
Like every other website we use cookies. By using our site you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Learn more Got it!