Question
Any help would be appreciated (Java). This program will find known text message abbreviations within a string and translate them to their actual meanings in
Any help would be appreciated (Java).
This program will find known text message abbreviations within a string and translate them to their actual meanings in unabbreviated form.
(1) Implement for Tests 1 & 2: Use nextLine() with a Scanner object variable to read one line of user input into a String variable. Then output the line, as shown below. Example:
Enter text: IDK if I'll go. It's my BFF's birthday. You entered: IDK if I'll go. It's my BFF's birthday.
(2) Implement for Tests 3 - 5: (Test 5 is a blind test) Search the user input string (using indexOf()) to find the common abbreviations listed below and print a list of each found abbreviation along with its decoded meaning. NOTE: Each abbreviation will appear no more than once in the text. Example:
Enter text: IDK if I'll go. It's my BFF's birthday. You entered: IDK if I'll go. It's my BFF's birthday. BFF: best friend forever IDK: I don't know
Support these abbreviations (searching for them, in the order listed): BFF -- best friend forever IDK -- I don't know JK -- just kidding LOL -- laughing out loud TTYL -- talk to you later
Step 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