Add Java and Python code for the following tutorials: