Java scanner class?

As far as I understand you your problem is in search engine logic. In this case class Scanner is irrelevant. It is just a convenient utility to read data from stream.

As far as I understand you your problem is in search engine logic. In this case class Scanner is irrelevant. It is just a convenient utility to read data from stream.

Concerning to search engine please define better your input and required output. Generally you should search for better matching of your query with target text. What does it mean?

It is very complicated. Probably longer char sequence, probably more matching words etc. People wrote hundreds of PhDs about this and created thousands of companies (did you hear about Google? :)).

So, unless it is homework try to use tools like Solr or Lucine. Otherwise think about strategies I mentioned above. Good luck.

A better approach might be to create an inverted index. Instead of going from a file to the words in the file, you do the opposite. A simple implementation in Java might just be done using Map>, where the string is the word and the list of files represents the files that contain that.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions