Using a single hashmap vs mutiple variables
<p>Lets say we have a class called CompHash with 30 different varaibles as follows:</p>

<pre><code>   public class CompHash{
      private String abc1;
      private int sdf2;
             :
             :
      private float sgh30;
   }
</code></pre>

<p>and a similar class:</p>

<pre><code>     public class CompHash{
         private HashMap diffVariables;
     }
</code></pre>

<p>In a situation where the number of variables that I will be needing varies from 1 to 30, which of the two would be better? </p>
