Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class conek {
- private static Connection koneksi;
- public static Connection GetConnection()throws SQLException{
- if(koneksi==null){
- new Driver();
- koneksi=DriverManager.getConnection("jdbc:mysql://localhost:3306/dbperpustakaan_10114287_10114299_10114336","root","");
- }
- return koneksi;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement