Working within Java, let\'s say I have two objects that, thanks to obj.getClass().isArray(), I know are both arrays. Let\'s further say that I want to compare
obj.getClass().isArray()
Maybe the Strategy Pattern can help it look better :)