Write a program that prompts the user to enter three strings. Compare the String objects lexicographically and

Question:

Write a program that prompts the user to enter three strings. Compare the String objects lexicographically and print the middle-valued string. For example, if the three strings were "abcd", "wxyz", and "pqrs", the program would print "pqrs". Be sure and test your code by giving it input data that tests every path through your code.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: