Fun with AOP - reducing redundant code - the ‘for’ loop
A few days ago I was coding a simple load-testing program using ‘for’ loops. Something of the form:
package com.plexibus.samples;
public class HelloWorldClient {
public static void main(String[] args) {
HelloWorld hw = new HelloWorld();
long startTime = System.currentTimeMillis();
for(int i=0; i<10000; i++) {
hw.greet();
[...]


















































