Java tutorial
//package com.java2s; import java.sql.Connection; import java.sql.SQLException; public class Main { private static Connection con; public static void close() { try { con.close(); } catch (SQLException ex) { ex.printStackTrace(); } } }