try -with-resources语句在语句末尾自动关闭所有资源。资源是程序结束时要关闭的对象。 其语法为:. try (resource declaration) { // use of the resource } catch ...
確定! 回上一頁