title: Retrieve a static variable using its name dynamically using reflection
body: <p>How to retrieve a static variable using its name dynamically using Java reflection?</p>
  
  <p>If I have class containing some variables:</p>
  
  <pre><code>public class myClass { 
       final public static string [][] cfg1= {{"01"},{"02"},{"81"},{"82"}}; 
       final public static string [][]cfg2=  {{"c01"},{"c02"},{"c81"},{"c82"}}; 
       final public static string [][] cfg3=  {{"d01"},{"d02"},{"d81"}{"d82"}}; 
       final public static int cfg11 = 5; 
       final public static int cfg22 = 10; 
       final public static int cfg33 = 15; 
   }
  </code></pre>
  
  <p>And in another class I want variable name is input from user: </p>
  
  <pre><code>class test { 
     Scanner in = new Scanner(System.in); 
     String userInput = in.nextLine();  
      // get variable from class myClass that  has the same name as userInput
     System.out.println("variable name " + // correct variable from class)
  }
  </code></pre>
  
  <p>Using reflection.  Any help please?</p>