I'm still plugging away with all these arrays and so forth, but I'm mow trying to search through an array. The array is sorted using a Bubble Sort Algorithm, and I've written a main class to test the searching capabilities.
The problem is that the output, when I run the main class, is simply freezing and not giving any data. It does not even request a number to input.
A bit perplexed at the moment!
Anyway, my code is as follows,
It's probably something really simple, but I just can't see it at the moment.
right after your print() call. If you call print(), the output won't necessarily appear on the screen until you either call println(), or flush(). I say "won't necessarily" because if you use print() to print a lot of data, then the buffer may flush automatically.
Perhaps your bubble sort routine (not shown here) never returns. Have you tested that already, apart from this searching routine? In particular, have you tested that it can sort this particular data file correctly?