Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Headphones {
- String charge = "Micro usb"
- String[] controls = {"power", "volume", "skip", "play/pause";
- String color = "Red/black"
- static boolean power = false
- static int volume = 0;
- public static void powerOn(){
- power = true;
- }
- public static void powerOff(){
- power = false;
- }
- public static void volumeUp(){
- volume++;
- }
- public static void volumeDown(){
- volume--;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement