How to write a Java program to implement it. The program should be simple. It may ask for the sentence and returns the count of all parts of speech found in the sentence.
Can any one idea to solve this type problem

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"

Post what you have done so far and someone will help you from there.