A program that indexes all the files in a given directory. First one in Java