Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import java.sql.Connection;
  2. import java.sql.DriverManager;
  3. import java.sql.SQLException;
  4.  
  5. public class Disciplina {
  6.  
  7. private int idDisciplina;
  8. private String disciplina;
  9. private float cargaHoraria;
  10.  
  11. public static void main(String args[]) throws SQLException {
  12. Connection conexao = DriverManager
  13. .getConnection("jdbc:mysql://localhost/ucsal");
  14. System.out.println("Conectado!");
  15. conexao.close();
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement