Hi,i have a java assignment that prints out the number of occrances of words in an entere sentence by the user.

Okay? Good for you. I hope you're doing alright with that.

commented: Exactly what I thought when I read the post. +14

majisade,i need help man. it aint alright.

Well, post your code and all error/compiler messages as well as the difference between the expected output and the actual output and we'll help you correct it. Otherwise go here. We are not a homework service.

ya there is a "space(white space)" as a separator by this you can count the number of words.

please try to to with the space separator

commented: It is against DaniWeb policy to provide cut-n-paste homework answers. Not that this is even, really, a good way of doing it. -2
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.