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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!