i compiled the code, and then executed it passed 3 params source file
dest file and the filter
all the info has to be in the command line. i used the java source file
as the source file and some file as dest and public as the filter word
so it looked like
java FileCopySift FileCopySift.java 1.txt public
and it seemed to work