Question: Exercise III - String Manipulation.java You were given a string of characters for your birthday. Even though you really enjoyed the gift, you believe that

 Exercise III - String Manipulation.java You were given a string ofcharacters for your birthday. Even though you really enjoyed the gift, you

Exercise III - String Manipulation.java You were given a string of characters for your birthday. Even though you really enjoyed the gift, you believe that you can make some changes to make it more beautiful. You want to be able to remove characters from it, as well as flip the case of any given character. You are greatly encouraged to do two separate methods for delete and flip, each of which takes in a string as a parameter and returns the modified string. The string only contains alphabetical characters, so you do not have to worry about handling other types of characters. What you have to worry about, though, is ignoring commands that are called on an index that is out of bounds (see example below). You should use a switch statement. Below you can find an example run: Enter your string: ThisIsanString The current string is: ThisIsaString Make a choice: 1- Delete character 2- Flip character 3- Exit 1 Enter the characters index: -1 Out of bounds! Make a choice: 1- Delete character 2- Flip character 3- Exit 1 Enter the character's index: 7 The current string is: ThisIsaString Make a choice: 1- Delete character 2- Flip character 3- Exit 2 Enter the character's index: 6 The current string is: ThisIsString Make a choice: 1- Delete character 2- Flip character 3- Exit 3 The final string is: ThisIsString Bye

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!