Retrieve a static variable using its name dynamically using reflection
- by user2538438
How to retrieve a static variable using its name dynamically using Java reflection?
If I have class containing some variables:
public class myClass {
string [][] cfg1= {{"01"},{"02"},{"81"},{"82"}};
string [][]cfg2= {{"c01"},{"c02"},{"c81"},{"c82"}};
string [][] cfg3= {{"d01"},{"d02"},{"d81"}{"d82"}};
int cfg11 = 5;
…