0

Ok so I changed it to increment and I still can't get it to do anything productive so I am guess even by changing the decrement to increment it is still messed up and incorrect.

0

Did you change the search input to accept a double, or did you just change the parameter to the search function?

This line:

int searchItem = input.nextInt();
0

ah there we go LOL
so i just type a number from the file and it only tells me what index it is at?

0

Yep. That's what searching by value is. It comes in handy, though, when you combine it with functions that that the index as a parameter.

When you get to data structures and algorithms, you'll spend a semester on that - a few other things, as well, but much of that course is usually given over to searching and sorting. Fun stuff, actually.

0

sounds more like scary to me...
But thank you very much for all of your help! =)
I am very appreciative of anyone who can help me understand this stuff.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.