answersLogoWhite

0

There are methods in the String class; toUppercase() and toLowerCase().

i.e.

String input = "Hello!";

String upper = input.toUpperCase(); //stores "HELLO!"

String lower = input.toLowerCase(); //stores "hello!"

-Note: these methods are NOT modifier methods therefore the original string is still "Hello!"

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

How do you convert content of file from lower to upper and upper to lower by using tr command in Linux?

ls -l | tr 'a-z' 'A-Z'


List and execute the UNIX command To convert the upper case letters to corresponding lower case letters in a text file?

Use tr:cat file | tr '[:upper:]' '[:lower:]'


How do you convert uppper case character to lower case in easytrieve?

There are a couple of different ways to convert upper case characters to lower case in easytrieve. One is to use the INSPECT/CONVERTING command.


How do you convert font lower case to uppper case in excel sheet?

You use the Upper function. So if the text is in A1, then in another cell put the formula: =UPPER(A1) The Lower function will change from upper case to lower case. The Proper function will give you a capital letter at the start and small letters for the rest. =LOWER(A1) =PROPER(A1)


What upper in Upper Normandy refer to?

opposite upper is lower Normandy.What do upper and lower refer to?


Where did horus live?

He lived some where in lower Egypt. But lower Egypt is upper Egypt because upper is lower and lower is upper.


Write a shell program to translate the6 etcpasswd file into uppercase?

tr [:lower:] [:upper:] < /etc/passwd > somefile


Why were the crowns of upper and lower Egypt combined?

The crowns of upper and lower Egypt were combined because King Menes combinded upper and lower Egypt. He decidd to combine upper and lower Egypt and the crowns.


Where were the two regions that was made up ancient Egypt?

Upper Egypt and Lower Egypt


Write a program in foxpro to chek inputed character is vowel or not?

You can use the following FoxPro code snippet to check if an input character is a vowel: CLEAR INPUTCHAR = UPPER(INPUT("Enter a character: ")) IF INLIST(INPUTCHAR, "A", "E", "I", "O", "U") ? "The character is a vowel." ELSE ? "The character is not a vowel." ENDIF This program prompts the user for a character, converts it to uppercase, and checks if it is one of the vowels using the INLIST function.


Who do you work out the upper and lower quartile?

you do work out the upper and lower quartile


what is the cost of upper and lower dentures.?

what is the cost of upper and lower dentures.