The output from println can help you see what the computer sees. I find it very useful.
Type: Posts; User: Norm
The output from println can help you see what the computer sees. I find it very useful.
Did you print out the value that indexOf was searching for?
What is the size of the Vector when the error occurred? Can you print it out?
Where is the first line of the stack trace from the...
What is the size of the Vector at line 290?
Is 29 the value returned by the indexOf() method?
What object was the indexOf() method searching the Vector for?
Where is the first line of the stack...
You need to add some printlns to debug what the code is doing to get the exception. Print out the value of the float number and the value returned by the indexOf() method just before the statement...
Can you show what was printed out. And the code that was used.
What indexOf() method are you using. Most versions of that method return an int value.
what value does the indexOf() method return? Make a separate statement and print out the value returned.
What happens when you compile and execute that code?
what value does the indexOf() method return? Make a separate statement and print out the value returned.
Can you explain what the problem is with using the same index in two Vectors?
Post the output from your code and explain what is wrong with it.
When you find the index for the float value in one Vector, then use that same index to get the corresponding String from the other Vector.
Not true.
You do not need to use a loop to get elements from a Vector. You can call its methods anywhere in your code.
Please explain what you are doing and show the code that is accessing the two Vectors. If the Vectors are parallel, then an index used with each Vector's get method will return the corresponding...