So in a class (ImportantClass123) I have this:
public AnotherImportantClass aReallyImportantClass;
How do I return
AnotherImportantClass
via knowledge of what its named as a field:
aReallyImportantClass
Something like
ImportantClass123.getFieldWithName("aReallyImportantClass");
?
How would I write getFieldWithName? and what would be its return type? Class?