title: How to convert a string variable value into a variable name
body: <p>There are around 10 different types of 2D arrays of varied sizes. eg:</p>
  
  <pre><code>int arr1[][];
  float arr2[][];
  long arr3[][];
  String arr4[][];
  </code></pre>
  
  <p>Each array needs to be printed at different intervals during the program execution. There is a method defined <code>print2DArray()</code> which takes the 2D array as parameter calculates the number of rows and columns and print the array. But since the arrays are of varied datatypes overriding methods need to be written for each data type. </p>
  
  <p>Can we create a variable as: String arrName;
  and pass it to the method <code>print2DArray()</code> and decode the String to obtain the array to be printed. 
  eg: </p>
  
  <p>if method is called as: <code>print2DArray(arr2);</code></p>
  
  <p>and method is defined as:</p>
  
  <pre><code>void print2DArray(String arrName){
      **Some code to identify which array is reffered by arrName to print**
  }
  </code></pre>