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...
Type: Posts; User: 112297
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...
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...
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...
Sorry,
Here is the error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -999
at arrayProgram.numSame(arrayProgram.java:70)
at...
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...
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...
I fixed it...is that better?
You mean the output or the actual code?
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...