Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public static void destroy() {
  2. try
  3. {
  4. if(stm == null) {
  5. System.out.println("stm is null");
  6. return;
  7. } else {
  8. stm.close();
  9. }
  10. if(con == null) {
  11. System.out.println("con is null");
  12. return;
  13. } else {
  14. con.close();
  15. }
  16. connected = false;
  17. }
  18. catch(Exception e)
  19. {
  20. e.printStackTrace();
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement