Is there a way to get a Integer
variable from a String
object, something like:
String string = "Render.SCREEN_WIDTH_TILES";
// SCREEN_WIDTH_TILES is a Render Integer value referenced in other class
I want the string
variable to hold the reference to the specified int
.
What I want from that string value is to "transform it" into a int value,
Is it possible to do this?
I can't find a way to handle an integer value as a variable in a string.