Simulate a reservation: Compare hour, date and Classroom between Java and MySQL

Good day. I have a small Java program that simulates the reservation of a class schedule. I need to reserve a classroom, on a specific date and a class start time and specific class end time, if there is a record in the database with those parameters (same date, hours and classroom) you can not make the reservation, however my ResultSet does not work. This is my method to create a reservation (cbxs are ComboBox):

public void crearReserva(String cbx1, String cbx2, String cbx3, Date fecha, String horaInicial, String horaFinal) {

try...

Read More »

By: StackOverFlow - Sunday, 17 June

Related Posts