Before using a string in a comparison, you can use either the To Upper method or the To Lower method to convert the string to upper case or lower case, respectively, and then use the converted string in the comparison.1. True2. False

Respuesta :

Answer:

True, check attachment for code

Explanation:

To convert java strings of text to upper or lower case, we can use and inbuilt methods To Uppercase and To lower case.

The first two lines of code will set up a String variable to hold the text "text to change", and then we print it out.

The third line sets of a second String variable called result.

The fourth line is where the conversion is done.

We can compare the string

We can compare one string to another. (When comparing, Java will use the hexadecimal values rather than the letters themselves.) For example, if we wanted to compare the word "Fat" with the word "App" to see which should come first, you can use an inbuilt string method called compareTo.

Check attachment for the code

Ver imagen Kazeemsodikisola
Ver imagen Kazeemsodikisola