Question
Write a Java Program that performs the following functionalities: A. Enter a new main sentence B. Find a String C. Find all incidents of a
Write a Java Program that performs the following functionalities: A. Enter a new main sentence B. Find a String C. Find all incidents of a String D. Find and Replace a String E. Replace all the incidents of a String F. Count the number of words G. Count a letters occurrences H. Count the total number of letters I. Delete all the occurrences of a word J. Exit The program will display a menu with each option above, and then ask the user to enter their choice. There should also be a tenth option (option J) to quit, in which case, the program will simply display a goodbye message.
Need help!! In java
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