I’m trying to subtract a scanner input from a table value. Here’s a screenshot of my table: Here’s what my code looks like: The output of my code is: Here’s what I want my table to look like after subtracting 100 (my scanner input quantity): I’m unsure as to why subtracting my scanner variable (quantity) doesn’t work, and I would
Tag: java.util.scanner
How to get SQL prepared statement based on user input (scanner)
I have difficulties with creating prepared statement which SELECT and print out rows which fulfill condition: SELECT ReservationStartDate, ReservationEndDate FROM treservations WHERE …