Create generate.java

printing to a file could be more helpful