Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

REPLACE, REPLACE, DELETE Hello, I need help with a Java program assignment. With this assignment, I need help understanding the process you did to get

REPLACE, REPLACE, DELETE

Hello, I need help with a Java program assignment. With this assignment, I need help understanding the process you did to get the program to work, it is a very simple Java program.

Please create a scanner string where a user must input a minimum of 250 characters. Please include comments in this program to explain what you did so I can work on the program and understand what you did.

The program must replace the first "," with a "!". Afterwards, the program must replace all "." to "!". Last, the program must be able to delete all of the special characters except "!".

Then the program will print:

Print the 250+ character String: Print the replaced first "!" to "." String: Print the replaced all of the "!" to "?" String: Print the deleted special characters except "!":

Great things to use would be charAt, StringTokonizer, String, String(char[] array name), String(characterArray[] int offset, intent), String(string Buffer), String(byte[] byteArray), indexOf(), valueOf(), StringBuffer, StringBufferappened(), append(), delete()

Here is an example of the 250 characters:

A while back I needed to count the 250 letters that a piece of text in an email template had (to avoid passing any character limits). Unfortunately, I could not think of a quick way to do so on my MacBook and me, therefore, turned to the Internet for help. I had an extra 17 words that were edited! But can I do it faster?

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

Step: 3

blur-text-image

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

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

Select suitable tools to analyze service problems.

Answered: 1 week ago