Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * The Epilepsy Button
- *
- * @author Ulizio
- * @version Yeet.0
- */
- import java.awt.*;
- import java.net.*;
- import java.util.concurrent.TimeUnit;
- public class ButtonPusher implements Button
- {
- String s;
- public static int currentState = 0;
- public void push() {
- try {
- if (currentState == 0) {
- currentState = 1;
- TimeUnit.SECONDS.sleep(5);
- System.out.println("ePiLePsY wArNiNg");
- String storedWeapon = "http://www.bigassmessage.com/e2c8c";
- URI attack = new URI(storedWeapon);
- Desktop desktop = java.awt.Desktop.getDesktop();
- desktop.browse(attack);
- }
- else {
- currentState = 0;
- String storedWeapon = "http://www.bigassmessage.com/24d6c";
- URI attack = new URI(storedWeapon);
- Desktop desktop = java.awt.Desktop.getDesktop();
- desktop.browse(attack);
- System.out.println("It seems that you've deactivated the epilepsy button. We assume this was in error. Please reactivate it now.");
- }
- }
- catch (Exception e) {
- System.out.println("You y00fed that humdinger: " + e);
- }
- }
- public String state() {
- if(currentState == 0) {
- System.out.println("The button is not pushed. You may still go back.");
- s = "Unpushed.";
- }
- else {
- System.out.println("Fluctuating light output indicates that the button is pressed.");
- s = "Pushed.";
- }
- return s;
- }
- }
Add Comment
Please, Sign In to add comment