Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- import java.net.*;
- public class AngerManager {
- private static Mood currentMood;
- public static String name = "Underoath";
- public static boolean isMad = (name.contains("Underoath") ? true : false);
- public static enum Mood {
- MAD, ANGERED, HAPPY, SAD, JOLLO
- }
- public static void main(String args[]) {
- System.out.println(isMad ? "Are you angered " + name : "YOU JOLLO?");
- currentMood = (isMad ? Mood.ANGERED : Mood.JOLLO);
- try {
- Desktop.getDesktop().browse(new URI((currentMood == Mood.ANGERED ? "http://i42.tinypic.com/ogxn5s.png" : "http://3.bp.blogspot.com/_v0uCKbBsdFE/THgPfENYr1I/AAAAAAAAABw/snjwOBUmots/s1600/u+jollo.jpg")));
- } catch (Exception e) {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement