able to place all the java files in a list