convert string to upper and lower case in java code example Example: java lower case to upper case toUpperCase()