How to put string as both upper and lower in java code example Example: java lower case to upper case toUpperCase()