// 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 Ref1 {
    public String a;
    public String b;
    public String c;
    public Ref1() {
        a = "I am a";
        b = "I am b";
        c = "I am c";
    }
    public static void main(String[] args) throws Exception {
        Ref1 o = new Ref1();
        System.out.println((String)o.getClass().getField("a").get(o));
        System.out.println((String)o.getClass().getField("b").get(o));
        System.out.println((String)o.getClass().getField("c").get(o));
    }
}
