Question: Need help on java H/W. thanks Prompt the user to input a string of even length, output a string made of the middle two chars,

 Need help on java H/W. thanks Prompt the user to input

Need help on java H/W. thanks

Prompt the user to input a string of even length, output a string made of the middle two chars, so the string "string" yields "ri". The string length will be at least 2. If the String is less than 2 or odd prompt the user and have the program loop back to the beginning. The program will end if the user enter an even String longer than 2 characters. Example Programs Please input a String: string ri Please input a String: code od

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!