Expand common text message abbreviations

Assignment Help JAVA Programming
Reference no: EM131578683

(1) Use scnr.nextLine(); to get a line of user input into a string. Output that line.

Ex:
Enter text: IDK how that happened. TTYL.
You entered: IDK how that happened. TTYL.

(2) Expand common text message abbreviations. Output a message for each abbreviation that is expanded, then output the expanded line. Note: Check for abbreviations in the order provided below.
Support these abbreviations (you only need to support these):
BFF -- best friend forever
IDK -- I don't know
JK -- just kidding
TMI -- too much information
TTYL -- talk to you later
Ex:
Enter text: IDK how that happened. TTYL.
You entered: IDK how that happened. TTYL.

Replaced "IDK" with "I don't know".
Replaced "TTYL" with "talk to you later".

Expanded: I don't know how that happened. talk to you later.

What's wrong with my code?

Attachment:- TextMsgExpander.rar

Reference no: EM131578683

Questions Cloud

Write a java application titled mystringtest : Write a Java application titled MyStringTest that creates an instance of the String class and initializes this instance with a String literal.
Write a program to test your class myrectangle : Write a program to test your class MyRectangle. In the client program, create two MyRectangle objects. Assign a width and height to each of the two objects
The role of politics in public health : Do you agree or disagree with Pisani's message about the role of politics in public health?
Types of grid frameworks like bootstrap : Then move your discussion into CSS Grids. What advantages or disadvantages would CSS Grids offer over the old types of grid frameworks like Bootstrap?
Expand common text message abbreviations : Output a message for each abbreviation that is expanded, then output the expanded line - Check for abbreviations in the order provided
What are the three levels of the federal court system : What are the three levels of the federal court system. Which court is at the top of the federal court system
Analyze the unique value proposition of an innovation : Topic: A report on a recent innovation from the Advanced Manufacturing Industry. Analyze the unique value proposition of an innovation.
Compute the unit product cost under variable costing : Sproull Inc., which produces a single product, Compute the unit product cost under absorption costing
Do you think that there are security scenarios : Do you think that there are security scenarios where IPSec is not enough? if yes, what other security measures could be in place and in which layer?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Design a class named fan to represent a rotating fan

create a class containing a number of static methods for processing an array of marks. Design a class named Fan to represent a rotating fan.

  Use server-side validation to validate all user entries

Use server-side validation to validate all user entries

  Write a java program that draws a square abcd

Write a java program that draws a square ABCD. The points A and B are arbitrarily specified by the user by clicking the mouse button. The orientation of the points should be counter-clockwise.

  Demonstrate the use of conditional and looping structures

The application should have two classes; at least one class in addition to the application's controlling class. The source code must demonstrate the use of conditional and looping structures.

  Write a java program called calctickets

write a java program called CalcTickets that prompts (asks) the user to enter a ticket number. The format of a valid ticket is C[C]DDDDD[C][C]

  What are the steps necessary to create a jar file

What are the steps necessary to create a JAR file where the main entry point is identified?

  Implementing the anagram searching algorithm

The deliverables are one Java file, implementing the anagram searching algorithm, with a main method reading the file to be processed as command line argument

  Create a program that automatically generates words

Create a program that automatically generates words from letters Solution

  Develop a java gui application using layout managers

Objectives- Develop a Java GUI application using layout managers, Develop an application that uses two or more classes and Read and/or write from/to text files

  Circuit for nuclear power plant alarm

Design a circuit for nuclear power plant alarm (slide #2) . Construct a) truth table, b) Boolean expression, c) draw logic circuit, and d) simulate with Multisim (or equivalent) circuit simulation software. Clearly label all inputs and outputs.

  Implement an uml to java code

Need to implement an UML to java code. Choose one of the two UML's and just implement. You are to implement someone else's design, namely, the design that you ranked first (although you are allowed to change your mind at any point if you wish)

  Functional abstraction

Question 1: What are some of the benefits of modularity? Question 2: What is functional abstraction? Question 3: What is information hiding?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd