Use try with resource.