Skip to content
Advertisement

Tag: java.util.scanner

Subtract scanner value from sql table value

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

Advertisement