PROGRAMMING:Jmu-java-05 set-4-inverted index
Set up inverted index for several lines of text (find the line number according to the word).
Then, according to the keyword, search in the inverted index, find the number of rows containing all the keywords, and output.
###Input description
1. Several lines of English, with '` For the end.
2. Input a line of query keywords, separated by a space
###Output description
1. Output the inverted index created. The key of the index is in ascending order by letter, and the value of the index is in ascending order by line number
2. Output query results. If found, output the rowset and the contents of each row in the rowset. If not, output ` found 0 results`
###Input sample
```in
where are you from are you ok
this is a test
that is an apple
there are lots of apples you eat it
who are you
!!!!!
you are
eat
you test
abc
```
###Output sample
```out
a=[2]
an=[3]
apple=[3]
apples=[4]
are=[1, 4, 5]
eat=[4]
from=[1]
is=[2, 3]
it=[4]
lots=[4]
of=[4]
ok=[1]
test=[2]
that=[3]
there=[4]
this=[2]
where=[1]
who=[5]
you=[1, 4, 5]
[1, 4, 5]
line 1:where are you from are you ok
line 4:there are lots of apples you eat it
line 5:who are you
[4]
line 4:there are lots of apples you eat it
found 0 results
found 0 results
```
answer:If there is no answer, please comment
Then, according to the keyword, search in the inverted index, find the number of rows containing all the keywords, and output.
###Input description
1. Several lines of English, with '` For the end.
2. Input a line of query keywords, separated by a space
###Output description
1. Output the inverted index created. The key of the index is in ascending order by letter, and the value of the index is in ascending order by line number
2. Output query results. If found, output the rowset and the contents of each row in the rowset. If not, output ` found 0 results`
###Input sample
```in
where are you from are you ok
this is a test
that is an apple
there are lots of apples you eat it
who are you
!!!!!
you are
eat
you test
abc
```
###Output sample
```out
a=[2]
an=[3]
apple=[3]
apples=[4]
are=[1, 4, 5]
eat=[4]
from=[1]
is=[2, 3]
it=[4]
lots=[4]
of=[4]
ok=[1]
test=[2]
that=[3]
there=[4]
this=[2]
where=[1]
who=[5]
you=[1, 4, 5]
[1, 4, 5]
line 1:where are you from are you ok
line 4:there are lots of apples you eat it
line 5:who are you
[4]
line 4:there are lots of apples you eat it
found 0 results
found 0 results
```
answer:If there is no answer, please comment