Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Whats the difference between line art and halftones?

Answered: 1 week ago

Question

please dont use chat gpt or other AI 1 0 5 .

Answered: 1 week ago