0

Given some abbreviations like IDK=I don't know etc.. and a string. I have to expand all the occurrence of abbreviation in the string. One approach could be to user replaceAll method
But it doesn't modify the existing string and I will have to keep on calling on the resulting string, depending on how many abbreviations are there. What could a good alternative to code this?

daniel
  • 169
  • 9

0 Answers0