Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Singleton {
- private static Singleton instance;
- public static synchronized Singleton getInstance() {
- if (instance == null) {
- instance = new Singleton();
- }
- return instance;
- }
- }
- private static String JDBC_URL = "jdbc:mysql://localhost/shopdb";
- private static String JDBC_USERNAME = "username";
- private static String JDBC_PASSWORD = "password";
Add Comment
Please, Sign In to add comment