Guest User

Untitled

a guest
Dec 1st, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public class Singleton {
  2. private static Singleton instance;
  3.  
  4. public static synchronized Singleton getInstance() {
  5. if (instance == null) {
  6. instance = new Singleton();
  7. }
  8. return instance;
  9. }
  10. }
  11.  
  12. private static String JDBC_URL = "jdbc:mysql://localhost/shopdb";
  13. private static String JDBC_USERNAME = "username";
  14. private static String JDBC_PASSWORD = "password";
Add Comment
Please, Sign In to add comment