// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class AopTest {
    private String getString() {
        if(Math.random() < 0.5) {
            return "OK";
        } else {
            return null;
        }
    }
    public static void main(String[] args) {
        AopTest tst = new AopTest();
        for(int i = 0; i < 10; i++) {
           String s = tst.getString();
           System.out.println(s);
        }
    }
}
