mardi 26 mars 2019

Return variable based on the variable name passed to the method

I have a fuction

static object returnVariable(String variableName){
      //check if this object named variableName exist.
      //If so return the object

}

//Assumption - variableName only passes Object's name , not primitive type variable name.

Greatly appreciate for any suggestion.





Aucun commentaire:

Enregistrer un commentaire