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 : 69