1 package model; 2 3 class BasicDisplay { 4 5 void setRed() { 6 System.out.println("Red set"); 7 } 8 9 void setYellow() { 10 System.out.println("Yellow set"); 11 } 12 13 void setGreen() { 14 System.out.println("Green set"); 15 } 16 17 void unsetRed() { 18 System.out.println("Red unset"); 19 } 20 21 void unsetYellow() { 22 System.out.println("Yellow unset"); 23 } 24 25 void unsetGreen() { 26 System.out.println("Green unset"); 27 } 28 29 void setAll() { 30 System.out.println("Red, Yellow, Green set"); 31 } 32 33 void unsetAll() { 34 System.out.println("Red, Yellow, Green unset"); 35 } 36 } 37