There is a website (called the Anti-if campaign) that talks about how to replace big nested if-statements with something more maintainable (through the use of a 'bond class' see example). I understand the concept, but I don't know how to implement it (even with the example).
Question: May I get a concrete example of how to implement this (ie, the bond class)? - it has been bugging me for some time now. Java is my preference, but any examples are welcome.
note I have found one more article on this in stack overflow here