I want to hook the method System.out.print in Java and have the ability to read/change the variables used in the method before the part of the method is called that actually add
He sneakily defines a static anonymous class so that System.out points to something different, and therefore print and println will route through that object.