String can be converted into Upper Case String sequence with the help of toUpperCase() method in java. toUpperCase() method returns a value in String. Use of String toUpperCase() in java is shown below.
Example of String toUpperCase() in java, JSP
public class StringToUpperCaseExample { public static void main(String[] args) { String string = "Java String"; String str = string.toUpperCase(); System.out.println("Output :"+str); } }
Output
Output :JAVA STRING
Tags: String



Link to Us