Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Youyou {
- public static final Map<Integer, Map<String, Integer>> conditionEvaluationCount = new HashMap<>();
- public void youyou() {
- String youyou = "Youyou, sortez couverts !";
- int x = 42;
- if ((x < 42)) conditionEvaluationCount.get(6).put("(x < 42)", conditionEvaluationCount.get(6).get("(x < 42)") + 1);
- else if ((x == 42)) conditionEvaluationCount.get(6).put("(x == 42)", conditionEvaluationCount.get(6).get("(x == 42)") + 1);
- else if ((x > 42)) conditionEvaluationCount.get(6).put("(x > 42)", conditionEvaluationCount.get(6).get("(x > 42)") + 1);
- if (((x < 42) || (x == 42)) || (x > 42)) {
- System.out.println(youyou);
- }
- }
- static {
- if (!conditionEvaluationCount.containsKey(6)) conditionEvaluationCount.put(6, new HashMap<>());
- }
- static {
- if (!conditionEvaluationCount.get(6).containsKey("(x < 42)")) conditionEvaluationCount.get(6).put("(x < 42)", 0);
- }
- static {
- if (!conditionEvaluationCount.get(6).containsKey("(x == 42)")) conditionEvaluationCount.get(6).put("(x == 42)", 0);
- }
- static {
- if (!conditionEvaluationCount.get(6).containsKey("(x > 42)")) conditionEvaluationCount.get(6).put("(x > 42)", 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement