title: getting all static variables in a class into array/list
body: <p>Bit of a wierd requirement.</p>
  
  <pre><code>public class DummyClass{
     public static final DummyClass var1;
     public static final DummyClass var2;
     public static final DummyClass var3;
      .
      .
      .
     public static final DummyClass var100;
  }
  </code></pre>
  
  <p>Now from outside of this class can we pool this var's into a single array or list, so that I can iterate over them? Like if i do something like</p>
  
  <pre><code>List&lt;DummyClass&gt; dummyList = *some op*; //I want value of some op.
  </code></pre>
  
  <p>I should be able to access var1...var100</p>