• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple occurrence of a word in a String

 
zalak thakkar
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I have a problem in finding the multiple occurrence of a single word in a Sting..Can any one help me? I have also the code of it bt it displays nothing.

 
Roel De Nijs
Sheriff
Posts: 10591
140
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You print values outside the html-tags. That's definitely not a good practice (and definitely results in invalid html). Should be in the body-tag, maybe in a seperate div-tag containing the results...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic