import java.sql.*;

public class MonProgramme {

	public MonProgramme() {
		try {
			Connection cnx = DriverManager.getConnection("jdbc:mariadb://dwarves.iut-fbleau.fr/srivasta","srivasta", "Tiamzon2006");

			PreparedStatement pst = cnx.prepareStatement("SELECT valeur FROM Mesure WHERE valeur BETWEEN ? AND ?");
			pst.setInt(1, 50);
			pst.setInt(2, 100);
			ResultSet rs = pst.executeQuery();

		}catch(SQLException e) {
			System.err.println("Connexion echouee : "+e);
		}

		try {
			Class.forName("org.mariadb.jdbc.Driver");
		} catch(ClassNotFoundException e) {
			System.err.println("Classe non trouvee : "+e);
		}

	}

	public static void main(String[] args) {
		MonProgramme monpgr = new MonProgramme();
	}

}