Add a showPrice method to the TicketMachine class. This should have a void return type and take no parameters. The body of the method should print:
The price of a ticket is xyz cents.
where xyz should be replaced by the value held in the price field when the method is called.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.