Hi all, It is a very interesting java problem , lets see if anyone can solve
make a program to count the occurance of words in a paragraph,the first and last word in a sentence should not be counted.

the out put should be displayed as
foreg:- He is a brilliant programmer.His brilliant technique is very useful

brilliant-2
is-2
a-1
very-1