Format code. Use try with resources.