• Post Reply Bookmark Topic Watch Topic
  • New Topic

TreeSet and Intersection  RSS feed

 
Andrew Hartman
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a TreeSet with a list of words matched to a filename.
e.g.
file1.txt - hello
file1.txt - there
file1.txt - please
file2.txt - help
file2.txt - me
file2.txt - thanks
I want to query the TreeSet using a String as query input.
Using the query syntax: and(hello,please) - which means the words 'hello' AND 'please'
I want to be able to return the filename this has been found in.
e.g. file1.txt
Can anyone give me a clue where to start?
Cheers
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Intermediate forum...
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help us help you.
Give us a clue as to what you understand and exactly which part or parts you're stuck on.
If you get started, show us what you've got, and try to describe your specific problem, folks around here are pretty good at nudging you in the right direction.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!