convert to upper case - Java

toupper

Snippet Code


  
Rate this page :
  [ 0 votes]

To convert a string into uppercase.

String name= "john"; name=name.toUpperCase(); System.out.println(name);

Tags


Ask Questions

Ask Question