public class demo1
{
public static void main(String[] args)
{
String str = "hello";
String upper_str = str.toUpperCase();
System.out.println("Original String: " + str);
System.out.println("String in uppercase: " + upper_str);
}
}Java
Program to convert all the characters of a string to uppercase.

Written by
View ProfileNikhil Juneja
Passionate software developer and technical contributor at TutorialsLink.
