Thanks a lot everybody.
I fixed my File Filter problem.
Step 2 :
I have used Scanner for reading from the file. But i could only figure out how to read lines.
I am facing a problem on how to split the line and store it in an array.(Actually i don't understand what does a split/useDelimiter do
). I have read about it at a lot of places but i don't understand its concept