Any help would be appreciated (Java).
This program will find known text message abbreviations within astring and replace them with their actual meanings in unabbreviatedform.
(1) Implement for Test 1:
Use nextLine() with a Scanner object variable to read one line ofuser input into a String variable.
Output that line.
Example:
Enter text:IDK how that happened. TTYL. You entered: IDK how that happened. TTYL.
(2) Implement for remaining tests: (Test 5 is a blind test)
Expand the common text message abbreviations.
Output a message for each abbreviation thatis expanded,
and use replace() on the input String toexpand the abbreviation.
After all replacements have been made,output the expanded line.
NOTE: An abbreviation may
PayPal Gateway not configured
PayPal Gateway not configured