Write a java program that will take a series of words until 0 is inputted. If a word starts and ends with the same letter (case-insensitive), the program will print that word in upper-case form. If...


Write a java program that will take a series of words until 0 is inputted. If a word starts and ends with the<br>same letter (case-insensitive), the program will print that word in upper-case form. If there is no such word,<br>the program will print O instead.<br>Input Format<br>A single line that includes words and 0 at the end. The words can be case-insensitive.<br>Constraints<br>14 >1, where l; refers the length of the i-th word.<br>Output Format<br>A single line having the relevant words separately in upper case.<br>Sample Input 0<br>test union Loyal elite sky 0<br>Sample Output 0<br>TEST LOYAL ELITE<br>

Extracted text: Write a java program that will take a series of words until 0 is inputted. If a word starts and ends with the same letter (case-insensitive), the program will print that word in upper-case form. If there is no such word, the program will print O instead. Input Format A single line that includes words and 0 at the end. The words can be case-insensitive. Constraints 14 >1, where l; refers the length of the i-th word. Output Format A single line having the relevant words separately in upper case. Sample Input 0 test union Loyal elite sky 0 Sample Output 0 TEST LOYAL ELITE

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here