java touppercase string code example Example 1: java uppercase "Hello World".toUpperCase() Example 2: java lower case to upper case toUpperCase()