Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

multiple occurrence of a word in a String  RSS feed

 
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: 11077
173
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
Boost this thread!