String toUpperCase()

The String toUpperCase() method uses to convert the string into upper case letters. This string uppercase javascript employs to convert all the letters of String to the upper case of the string. The return type of toUpperCase() is String.




class ExampleOfUpperCase
	 public static void main(String args[])
		String name = "java wings";  
		String upperCase = name.toUpperCase();
		System.out.println("String converted into upper case letters = "+upperCase);	

Output: String converted into lower case letters = JAVA WINGS

1 thought on “String toUpperCase()”

Leave a Comment