is there an easier method to write search class than this code that i think it isn't

Printable View