packagecom.DateSystem;importjava.sql.Connection;importjava.sql.ResultSet;importjava.sql.SQLException;importjava.sql.Statement;publicclassJDBcloss{privatestaticvoidclose(ResultSetresultSet){if(resultSet!=null){try{resultSet.close();}catch(SQLExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}}}privatestaticvoidclose(Statementstatement){if(statement!=null){try{statement.close();}catch(SQLExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}}}privatestaticvoidclose(Connectionconnection){if(connection!=null){try{connection.close();}catch(SQLExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}}}publicstaticvoidclose(Statementstatement,Connectionconnection){close(statement);close(connection);}publicstaticvoidclose(ResultSetresult,Statementstate,Connectionconn){close(result);close(state);close(conn);}}