I added different styles for Java and Python. See bottom of the .tex on how to add java source code.