This Java program converts a given String to uppercase using the toUpperCase() method and prints the resulting uppercase String.
public class UpperCase { public static void main(String[] args) { String str = "Tutor Joes Computer Education"; String lwr_str = str.toUpperCase(); System.out.println("Given String : " + str); System.out.println("String in Uppercase : " + lwr_str); } }
Given String : Tutor Joes Computer Education String in Uppercase : TUTOR JOES COMPUTER EDUCATION
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions