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:
- (Re-)Input the first string.
- (Re-)Input the second string.
- Compare whether the Strings have equivalent values.
- Determine if the first string is a subset of the second string.
- Determine the length of both strings.
- Find the character at a location within each string. The user will input the character position.
- Break the first string into a substring. The user will input the starting and ending positions of the substring.
- Combine the two strings into a single string, concatenating the two together.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
