Bayou is a tool that can automatically generate Java code from a 'sketch' of the desired types and methods to use! https://info.askbayou.com/how-to-use-bayou/ This uses a neural net trained on a corpus of existing Java code.