String toUpperCase() Example Program
package com.practice.string;
public class StringUpperExample {
public static void main(String args[]) {
String s1 = "basic Programs";
String s1upper = s1.toUpperCase();
System.out.println(s1upper);
}
}
Output :
BASIC PROGRAMS
public class StringUpperExample {
public static void main(String args[]) {
String s1 = "basic Programs";
String s1upper = s1.toUpperCase();
System.out.println(s1upper);
}
}
Output :
BASIC PROGRAMS
Comments
Post a Comment