Search:

Type: Posts; User: 112297

Search: Search took 0.12 seconds.

  1. Replies
    10
    Views
    1,941

    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
    1,941

    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
    1,941

    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
    1,941

    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
    1,941

    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...
  6. Re: Letter grade isn't printing from the function to the output file...HELP!

    Really? I thought that's what I was doing inside of the function...So all I needed to do was assign grade the value of the function? Thank you so much Curmu! I'm going to try it now and let you know...
  7. Re: Letter grade isn't printing from the function to the output file...HELP!

    I fixed it...is that better?
  8. Re: Letter grade isn't printing from the function to the output file...HELP!

    You mean the output or the actual code?
  9. Letter grade isn't printing from the function to the output file...HELP!

    import java.io.*;
    import java.util.*;
    import java.lang.String;
    import java.lang.*;

    public class grades
    {
    public static double stuAve = 0.0;
    public static double...
Results 1 to 9 of 9