answersLogoWhite

0


Best Answer

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
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Java program convert the inputed words into its upper case or lower case form?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.


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 shell program to translate the6 etcpasswd file into uppercase?

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


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.


Which organ has upper chamber and lower chamber?

The heart has upper and lower chambers.