![]() To display the number of words in the sentence.\n2. ![]() Once again, thank you ! Scanner sc = new Scanner(System.in) Here is the code fragment, taken from the main class. This Exception in thread "main" at (Unknown Source) at (Unknown Source) at (Unknown Source) at (Unknown Source) at SentenceManipulator.main(SentenceManipulator.java:28) i> I have looked on the web already, but all the suggestions are is to use nextLine(), which I have already implimented, but it still does not wait. Unfortuately, when this is run, The user enters "5" and then to do/while loop continues, without waiting for the new input. In my case switch, when the "5" is entered, I ask for a new sentence, and then make the old string into the input that the user enters. The problem comes when the user enters "5" which means they would like to replace the original string with a new string. I take the string, and then give the user options on what to do with the string. ![]() Basically, I am supposed to take a string and manipulate it, and then send info back to the user. ![]() Hello programming friends, I have run into some trouble with a odd homework assignment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |