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...
Type: Posts; User: Norm
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...
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...
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...
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...
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.