JavaStringreplaceAll
replace

replaceAllString

toUpperCase

Replaces all substrings matching the regex.

Syntax

str.replaceAll(regex, replacement)