Question: {Please Complete in Java} Write a program that contains the words into an array, and decodes the hidden location so Watson can contact Holmes and
{Please Complete in Java}
Write a program that contains the words into an array, and decodes the hidden location so Watson can contact Holmes and tell him about this new case. You must use a loop to evaluate each clue. The final word should be 22bakerstreet. Use an array named "code". Please do NOT use Sb, StringBuilder, etc. Create as simple as possible.
a. The first nonsense word is considered to be even (because it is at index 0).
b. For odd-numbered words, you are supposed to only use the third and fourth
characters.
c. In all other words, you use only the fifth character.
The following words were provided by Watson:
Nexa2f5
Z52Bizlm
Diskapr
emkem9sD
LaWYr4Us
dAStn78L
mPTuriye
aaeeiuUu
IL8Ctmpn
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
