This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have an interface with a method name “sampleMethodName()”,just forget about the syntax and all. This interface is implemented by many classes. If I want to chage the method name from “sampleMethodName()” to “NewSampleMethodName()”,then all the class implement this interface should be changed. But my intention is less rework. anyone can suggest how to do this ?
if you're not using an IDE, you can also write a script that parses a file and does a substitution. You can do it in perl pretty easily, but i'm sure someone is going to post about the evils of perl soon, so use whatever scripting language you prefer.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors