recognises the java files, compiles it and prints the output on screen