I have a method:
public void extractStringFromField(Class> classToInspect) { Field[] allFields = classToInspect.getDeclaredFields(); for(Fie
It looks like you need a reference to an instance of the class. You would want to call get and pass in the reference, casting the return to a String.
You can use get as follows:
String strValue = (String) field.get (objectReference);