I have a method that\'s about ten lines of code. I want to create more methods that do exactly the same thing, except for a small calculation that\'s going to change one li
If you have just one line which is different you could add a parameter such as a flag and a if(flag) statement which calls one line or the other.