String Array to UpperCase Java - Know Program
After converting into uppercase the resultant array would be as follows:- After conversion = {“JAVA”, “PYTHON”, “JAVASCRIPT”} The toUpperCase () method of the String class is used to convert String to the upper case. This method is present in java.lang package in string class, as this is the default package there is no need to import explicitly.