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?
Asked
Active
Viewed 33 times
0
daniel
- 169
- 9