Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Create a java program that allows user to enter multiple sentences and loops character by character to separate each token from the sentences.

.Create a java program that allows user to enter multiple sentences and loops character by character to separate each token from the sentences. DO NOT use arrays, regEx, replaceAll() or a second scanner object to separate each token. After separating each word, determine whether the word starts with a vowel. If the word starts with a vowel and there is an "a" in front of the word, change the "a" to "an"; if the word does not start with a vowel and there is an "an" in front of the word, change the "an" to "a"; otherwise do not alter the word.

One exception: when the users enter "a unique", do not change the "a" before "unique"

There can be more than one spaces between each word, retain the exact number of whitespaces that the users enter

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question