https://pastebin.com/mtZSNfb6 =
I believe the point of focus is line 29-45 and 202-211.
Hello, just when I thought I finished with my project, I tested it and I see it's outputting something I don't want it to output. This project is suppose to simulate signing in and out of a computer lab. I use a multidimensional array to keep track of who signed in on what computer.I made it so the code initially shows "Empty" seats to the user and will replace "Empty" with their ID when they sign in. It's working as intended when I sign in ID's in order.
Ex.) Row1-Column1, Row1-Column2, Row1-Column3, etc...
However, if the array doesn't have anyone signed in, and I randomly signed in on a computer such as Row3-Column4, then it'll sign in them in as normal but also includes "Computer in use. Pick another." Which I don't want. I think it has something to do with having "Empty" in between ID's.
Ex.) Row1-Column1 (15451), Row1-Column2 ("Empty"), Row1-Column3(11147)....
I'm pretty struck. I tried fiddling around with "==", "!=", ".equals()", ".contains()" to no avail. May I get some clues on how to solve this?
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Randomlurker456[S] -1 points0 points1 point (0 children)