5 Replies Latest reply on Nov 30, 2006 11:16 AM by 807607

    java.lang.ArrayIndexOutOfBoundsException: 0

    807607
      I getting above runtime error . I have also changed commandLineArguments="15" in server-cfg.xml file of wsad. Plz find the below line code:
      public class Test{
           //int i = 1;
           public static void main(String[] args) {
                int num = Integer.parseInt(args[0]);
                for(int i = 1;i<=num;i++){
                     for(int j=1;j<=i;j++){
                          System.out.print(" "+i+" ");
                     }
                     System.out.print("\n");
                }
           }
      }