Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void destroy() {
- try
- {
- if(stm == null) {
- System.out.println("stm is null");
- return;
- } else {
- stm.close();
- }
- if(con == null) {
- System.out.println("con is null");
- return;
- } else {
- con.close();
- }
- connected = false;
- }
- catch(Exception e)
- {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement