Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Tester {
- public static void main(String[] args) {
- Tv tv = new Tv("SAMSUNG", 2, false);
- char c =0;
- while (c!='E') {
- Scanner s = new Scanner(System.in);
- System.out.println("choose e/x");
- c = s.next().charAt(0);
- switch (c) {
- case 'X':
- case 'x':
- System.out.println(tv.changeMuteStatuse());
- break;
- case'E':
- System.out.println("exit");
- break;
- default:
- try{
- System.out.println("enter volume");
- int v = s.nextInt();
- System.out.println(tv.chaneVolume(v));
- }catch(Exception e){
- System.out.println(e.toString());
- }
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement