Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: java.land.IndexOutOfBoundsException: Index -1 out-of-bounds for length 0

    The code would be better if that method threw an exception when there is a problem with the input instead of ignoring the problems and returning bad data.

    Also comments in the code re the expected...
  2. Re: java.land.IndexOutOfBoundsException: Index -1 out-of-bounds for length 0

    To see what print statement is printing the null, add unique ids with each print statement. For example:


    System.out.println("p="+p);
    ...
    System.out.println("a="+a);



    Why? What...
  3. Re: java.land.IndexOutOfBoundsException: Index -1 out-of-bounds for length 0

    Basically make sure there is an element at index 0 before trying to access it.

    How are you debugging the code to see what it is doing?
    I use print statements. Add lots of print statements to...
Results 1 to 3 of 3