Java Tips: Process Object Based On Its Type Without if-then-else Solution

I want to share my answer for this question on StackOverflow. Say you want to process several objects with different types. Each type must be processed differently but some concerns are: You don’t want if-then-else solution which is obviously not great for long-term Configuration is also bad for the same reason So how is the […]