In the Documentation for FTPClient there are some examples
FTPClient f = new FTPClient();
FTPFile files = listFiles(directory);
There is a typo on the last line.
It should be f.listFiles(directory);
Rating this as Minior as any decent Java programmer should work it out.