// Create instance of FindField
FindField gf = new FindField();
// Create instance of target class (YearHolder defined below).
Object o = new YearHolder();
// Use gf to extract a field from o.
System.out.println("The value of 'currentYear' is: " +
gf.intFieldValue(o, "currentYear"));