Use either scanner of JOPtionPane to ask the user what he wants to do. Use “if – else – if” statements to execute the method associated with user’s input of a number representing the desired action (e.g. 1=Turn on/Turn off TV, 2 = Increase volume, 3 = decrease volume, 4=find out channel). Use the choice to get value using the new Television object.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here