Here you can find the source of closeResultSet(ResultSet rs)
public static void closeResultSet(ResultSet rs)
//package com.java2s; //License from project: Apache License import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static void closeResultSet(ResultSet rs) { try {/*from w w w . j a v a 2 s. c o m*/ rs.close(); } catch (SQLException e) { } } }