Is it possible to remove the else part of the if statement in the print Ticket method
Fantastic news! We've Found the answer you've been seeking!
Question:
Is it possible to remove the else part of the if statement in the print Ticket method (i.e., remove the word else and the block attached to it)? Try doing this and seeing if the code still compiles. What happens now if you try to print a ticket without inserting any money?
Related Book For
Posted Date: