Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void decChannel(){
- if(!powerState){
- throw new IllegalStateException("TV is OFF!");
- } else {
- this.channel = channel - 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement