9 Replies Latest reply on Mar 17, 2007 4:11 PM by JosAH

    OutOfBoundsException with char array

      in the catch part how can i delete the last char in the array so it doesnt keep giving me the exception? Thanks for any help.
           passWord[counter] = e.getKeyChar();
      catch(ArrayIndexOutOfBoundsException b)
           System.out.println("Your passwords is too long, use back space to go back");
               //need statement to remove last char in the array