Does anybody out there use a pattern for a large if-else set code in Java? I read an article in JavaWorld that's using Visitor pattern but I felt that it's too complicated. any comments would be appreciated in advance! Cindy
Hi, To remove conditional logic,Polymorphism GRASP Pattern could be used.The variations of Polymorphism (like State and Command pattern) has been explained with examples in Craig Larman,Applying UML and Patterns.
Hope this helps, Sandeep [This message has been edited by Desai Sandeep (edited June 14, 2001).]