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.

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();

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

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.