Ok, I need to make a program that will let the user enter a sentence. then find all of a certain word (and) and print out the count of how many times that word was in the input. I would like to do this in a while loop. Not sure where to start (I am fairly new). Someone please help.

String.indexOf

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.