Write a program to Reversing Case Character in Java Programming Language.
Program :
public class Reversing_Case_Character { public static void main(String[] args) { String str1 = "AHIRLABS.COM"; String str2 = "ahirlabs.com"; System.out.println("->> Orginal Strings :\n"); System.out.println(str1 + "\n" + str2+"\n"); System.out.println("->> After changing Case Of Strings: \n"); System.out.println(str1.toLowerCase() + "\n" + str2.toUpperCase()); } }
(Visited 112 times, 1 visits today)
Written by: