I was trying to figure out if there is a similar way in java as there is in javascript to get an objects member variable using a string rather than with explicit dot notation.
For Example in javascript I can access an elements member variable by:
someObj["memVarName"] and someObj.memVarName
So is there any given way without me having to write a specific method to do this?