Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In java Class Strange abbreviutions are often used to write text messages on uncomfortable mobile devices. One purticular strategy for encoding texts composed of alphabetic
In java
Class Strange abbreviutions are often used to write text messages on uncomfortable mobile devices. One purticular strategy for encoding texts composed of alphabetic characters and spaces is the following: pub11e elass TxNag f - Spaces are raintained, and each word is encoded individually. A word is a consecutive ablie string getYes8age(String original\} \{ string ol alphibetic chiriciers. - If the word is composed only of vowels, it is written exactly as in the original message. - If the word has at least one consonant, write only the consonants that do not have another consonant immediarely before them. Do not write any vowels. - The letters considered vowels in these rules are 'a', 'e', 'i., 'o' and 'u'. All other letters are considered consonunts. using the described strategy. Constraints - oripinal will contain between 1 and 50 characlers, inclusive - Each character of original will be a lower case letter 'a'-'z' or a space. - There will not be two consecutive spaces in original. Examples 1. "text messageStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started