public class DonjonBd extends Donjon{ public void connection(){ Connection cnx = DriverManager.getConnection( "jdbc:mariadb://dwarves.iut-fbleau.fr/elhaddad", "elhaddad", "NassimPHP77550"); try{ Class.forName("org.mariadb.jdbc.Driver"); }catch(ClassNotFoundException); } }