r/learnjava • u/Lightningjet75 • Jan 19 '20
I made a code that was too realistic
I had a challenge to create a class that functioned like a real printer, used ink to print a page, needed to refill the ink from time to time etc.
Apparently I made it too realistic in the fact that no matter what I did my output would be "Not enough ink"
Later I figured out that in one of my if() statements that I used >= rather than <=
Now it works unrealistically well
0
Upvotes
8
u/ColKaizer Jan 19 '20
K