I have around 100 classes in which I have a string literal, let's say "ABC". I want to replace this literal with the classname for each of this file. I can go to each class and replace it. But is there a shorter way of doing it??
Example -
In file classA.java -> replace ABC with classA
In file classB.java -> replace ABC with classB
and so on..
Please note that I want different strings to be replaced in different files. Surely, I can do it the normal way(open file and replace the string), but i don't want to do it for 100-200 files. Please read the question carefully before blindly marking it as duplicate.