“A resource that you specify in the try-with-resources construct must be of the type java.lang.AutoCloseable.” — Kishori Sharan Copy Share Image