Question: IN JAVA You have a word, do the following: If the word has odd number of characters and has 5 or more characters, print the
IN JAVA You have a word, do the following: If the word has odd number of characters and has 5 or more characters, print the middle three characters of the word. Otherwise, print "invalid". Sample Output: fifteen ==> fte apple ==> ppl hey ==> invalid java ==> invalid whatsup ==> ats $ ==> invalid
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
