Question: Create the class Driver. The class will implement the main method and provide a menu allowing access to the operations of the class StringExercises and

Create the class Driver. The class will implement the main method and provide a menu allowing access to the operations of the class StringExercises and printing the results of each operation when it is selected. Recall, this is the functionality implemented by the class StringExercises:

  1. (Re-)Input the first string.
  2. (Re-)Input the second string.
  3. Compare whether the Strings have equivalent values.
  4. Determine if the first string is a subset of the second string.
  5. Determine the length of both strings.
  6. Find the character at a location within each string. The user will input the character position.
  7. Break the first string into a substring. The user will input the starting and ending positions of the substring.
  8. Combine the two strings into a single string, concatenating the two together.

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!