Need a little help for a homework programm in Java
Hi to all,
I need your help to solve my homework. I have to write a programm, which implements a given search algotithm, but the seach should be faster then 2 secounds.
In the programm description is said: the programm should "reads the complete test file (there are efficient and non-efficient ways for it!)".
Well my question is, what is the efficient way to read the whole file? And where should I save it? May be in a string array!?
Than I have to search in it for a given patern according to a given algorithm. I stuck with the first part, how to read a file in an efficient (fast) way and where to storage the information.
Does anybody have an idea how to solve this problem?
Thank you in advance !