Search:

Type: Posts; User: 112297

Search: Search took 0.10 seconds.

  1. Replies
    10
    Views
    2,020

    Re: ArrayIndexOutOfBoundsException...Help!!

    I have 3 arrays...The numList array accepts input values from the console. The 2nd array listCopy has the values from the numList array deep copied into it...I did that so I could use it to compare...
  2. Replies
    10
    Views
    2,020

    Re: ArrayIndexOutOfBoundsException...Help!!

    I can't understand why the -999 is being counted as part of that data...it breaks out of the loop just fine..

    Here is the problem from the book: Write a program that reads in a set of positive...
  3. Replies
    10
    Views
    2,020

    Re: ArrayIndexOutOfBoundsException...Help!!

    The -999 is supposed to be a sentinel controlled loop...It's supposed to end the input from the user, but I don't know why it's being used in the program like it is...



    --- Update ---

    I'm...
  4. Replies
    10
    Views
    2,020

    Re: ArrayIndexOutOfBoundsException...Help!!

    Sorry,
    Here is the error:

    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -999
    at arrayProgram.numSame(arrayProgram.java:70)
    at...
  5. Replies
    10
    Views
    2,020

    ArrayIndexOutOfBoundsException...Help!!

    I'm writing an array program that has the user input a series of integers, and the program has to count how many duplicates of a number are entered if any and output the data in increasing order..I...
Results 1 to 5 of 5