• Post Reply Bookmark Topic Watch Topic
  • New Topic

String class method  RSS feed

 
meeta gaur
Ranch Hand
Posts: 305
Notepad Tomcat Server Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

sss sss ssss ss s
sss sss ssss ss s

I thought replace will replace() first occurrence only while replaceAll() will do everywhere but both seems same then why one is named replace and another replaceAll ?
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Presumably you've looked at the Javadocs that explain what these do and how they differ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!