Question
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
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