Question: I have a program on java. Basically, you provide the program with a number x and it constructs a television with x channels. My primary
I have a program on java. Basically, you provide the program with a number x and it constructs a television with x channels. My primary issue here is that I have a function called goToPreviousChannel, which returns to the most recent channel. For example, if your are on channel no. 40 and go to channel no.50, and you call goToPreviousChannel it should return 40. Apparently, I don't know how to implement it. Any help?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
