Code that has been wrote to learn Java