title: whats wrong with this wrapper class with for loop
body: <pre><code>public static void main(String args[])
  {
      Calculation C=new Calculation();
      int i;
      for(i=5;i&gt;=0;i--)
      {
           C.m[i]=Integer.valueOf(args[i]);        
           //assignment of command line arguments with the array//        
      }
      C.display();
  }
  </code></pre>
  
  <p>this gives error of "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5" with the input of command line arguments as 10 20 30 40 50 60
  Please help me</p>