Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    10
    Views
    2,003

    Re: ArrayIndexOutOfBoundsException...Help!!

    I don't understand what the copy is needed for. Why not use the array that has the data entered by the user?

    Please explain how the array can hold the number of duplicates. How does the code...
  2. Replies
    10
    Views
    2,003

    Re: ArrayIndexOutOfBoundsException...Help!!

    Use this code to print out the array so you can see what is in it:

    System.out.println("an ID "+ java.util.Arrays.toString(theArrayNameHere));
    Use the name of your array.

    What you posted were...
  3. Replies
    10
    Views
    2,003

    Re: ArrayIndexOutOfBoundsException...Help!!

    Why does the code use the sentinel number for an index? Is there a way the code can test for that number and use that number to stop processing the input data instead to using it as data?

    Can you...
  4. Replies
    10
    Views
    2,003

    Re: ArrayIndexOutOfBoundsException...Help!!

    That is a very strange index value: -999
    Do you recognize where that came from? Why is the code trying to use that for an index?

    Look at line 70 and see why the code was using -999 for an...
  5. Replies
    10
    Views
    2,003

    Re: ArrayIndexOutOfBoundsException...Help!!

    When you get an error, please copy the full text of the error message and paste it here. It has valuable info about the problem.
Results 1 to 5 of 5