How to Use Java String Class toUpperCase() Method
Function Description In String class the toUpperCase () method is used to convert all the characters of the string in uppercase using the rules of the given locale. If locale is specified in method, it uses the specified locale otherwise uses the default locale calling from Locale.getDefault() during string conversion. Case mapping is based on…