title: How to check if variable name contains string and then output string variable content
body: <p>So I have these 4 variables</p>
  
  <pre><code>private final String PROG_DEPT = "PROGRAMMING/ENGINEERING";
  private final String DES_DEPT = "DESIGN/WRITING";
  private final String ART_DEPT = "VISUAL ARTS";
  private final String SOUND_DEPT = "AUDIO";
  </code></pre>
  
  <p>What I want to be able to do is to get a string and compare it to the variable and then out put what the variable contains if it equals it. </p>
  
  <p>For example if my string equals "ART_DEPT" then it check if there is a variable called ART_DEPT and then output "VISUAL ARTS"</p>
  
  <p>I was thinking of putting it in a 2D String array or a list but I'm not really sure as to how to do what I want to do</p>