+toUpperCase()
Return type String
Returns a new string with all characters converted to uppercase.
import java.lang.String;
class touppercase{
public static void main(String[] args){
System.out.println("WelcoMe : "+"WelcoMe".toUpperCase());
}
}
Output: WelcoMe : WELCOME
Returns a new string with all characters converted to uppercase.
import java.lang.String;
class touppercase{
public static void main(String[] args){
System.out.println("WelcoMe : "+"WelcoMe".toUpperCase());
}
}
Output: WelcoMe : WELCOME