Question: 2. Given the following: String word=goodbye; String sentence=This month is February.; a. Create a line of code to output the length of word. b. Create

 2. Given the following: String word="goodbye"; String sentence="This month is February.";

2. Given the following: String word="goodbye"; String sentence="This month is February."; a. Create a line of code to output the length of word. b. Create a line of code to output the length of sentence c. Create a line of code to turn word to all capital letters, then output it d. Create the line of code to turn sentence to all lower case and output it. e. Using the substring method we learned output only the word month in sentence

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!