The #JVM is an excellent platform for #monkeypatching
I want to demo several approaches for monkey-patching in Java in this post.
As an example, I’ll use a sample for-loop. Imagine we have a class and a method. We want to call the method multiple times without doing it explicitly.