2 Replies Latest reply on Mar 31, 2007 5:39 PM by 807599

    string index out of bounds... issue regarding checking for non-integers

      okay. i have been racking my brain about this for the last couple of days. i looks like everything is alright, but i keep getting string index out of bounds exception: string index out of range 1.

      heres the code.

                     for(int x=0; x<size; ++x)
                          System.out.println("Please enter value #"+count+(":"));
                               System.out.print("Please Enter Only Integers!");

      its probably something really stupid, but if someone can figure this out, id be most grateful.