Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String date1Query = "SELECT checkIn FROM Reservation WHERE roomLocation LIKE '" + room + "'";
- String date2Query = "SELECT checkOut FROM Reservation WHERE roomLocation LIKE '" + room + "'";
- ResultSet date1RS = statement.executeQuery(date1Query);
- ResultSet date2RS = statement.executeQuery(date2Query);
- while (date1RS.next()) {
- date1 = date1RS.getDate("checkIn");
- date2 = date2RS.getDate("checkOut");
- dateCheckBool = dateCheck.dateCheck(date1, date2, checkIn, checkOut);
- if (dateCheckBool == true)
- break;
- }
Add Comment
Please, Sign In to add comment