Java

Program to convert all the characters of a string to uppercase.

Program to convert all the characters of a string to uppercase.
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);
    }
}
Nikhil Juneja

Passionate software developer and technical contributor at TutorialsLink.