siteName > > main
Threads
java ( 795064 ) - java ( 795065 ) stack: com.example.javase.Main.main(Main.java:296)
File: javaTestDemo@20240729/com/example/javase/Main.java 📋
/* javase demo for test */
package com.example.javase;

import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
import java.text.SimpleDateFormat;
import java.io.*;
import java.util.*;
import java.util.function.*;
import java.util.Timer;
import java.util.TimerTask;

@FunctionalInterface
interface ThrowingConsumer<T> {
    void accept(T t) throws Exception;
}

class Animal {
    public int leg;

    {
        leg = 16;
    }

    public Animal() {
        System.out.println("Animal cs");
    }

    void makeNoise() {
        System.out.println("Generic animal noise");
    }

    int hasLegs() {
        if (leg > 0) {
            return leg;
        }
        return 4;
    }
}

class Dog extends Animal {
    @Override
    void makeNoise() {
        System.out.println("Bark!");
    }

    @Override
    int hasLegs() {
        return 3;
    }
}


public class Main {

    private static int timerCount = 0;
    private static final int aa = 11;
    private static final String b = "www";

    private String c = "eee";

    {
        c = "ccc";
        c = "qqq";
        c = "rrr";

        int d = 8;
    }

    static class Cat extends Animal {
        static {
            System.out.println("Cat static!");
        }

        {
            leg = 111;
        }

        @Override
        void makeNoise() {
            System.out.println("Meow!");
        }

        @Override
        int hasLegs() {
            return leg;
        }
    }

    public enum ItemEnum {

        HOME("Home"), PRODUCTS("Products"), COMPANY("Company");

        private final String title;

        ItemEnum(String title) {
          this.title = title;
        }

        @Override
        public String toString() {
          return title;
        }
    }

    private static double getPercentage(double value, int min, int max) {
        if (value > max) {
            return 1.0;
        }
        if (value < min) {
            return 0.0;
        }

        double ret = (value - min) / (max - min);
        if (ret <= 0.0601f && ret > 0.0401f) {
            ret = 0.05;
        } else if (ret <= 0.0401f && ret > 0.0201f) {
            ret = 0.03;
        } else if (ret <= 0.0201f && ret > 0.0061f) {
            ret = 0.01;
        } else if (ret <= 0.0061f) {
            ret = 0.0;
        }
        return ret;
    }

    private static double getPercentageWithThrow(double value, int min, int max) throws Exception {
        if (value > max) {
            return 1.0;
        }
        if (value < min) {
            return 0.0;
        }

        if (111 == 111) {
            throw new Exception("Throw an Exception!");
        }

        double ret = (value - min) / (max - min);
        if (ret <= 0.0601f && ret > 0.0401f) {
            ret = 0.05;
        } else if (ret <= 0.0401f && ret > 0.0201f) {
            ret = 0.03;
        } else if (ret <= 0.0201f && ret > 0.0061f) {
            ret = 0.01;
        } else if (ret <= 0.0061f) {
            ret = 0.0;
        }
        return ret;
    }

    private static void recurAddInt(int a, int b) {
        int sum = a + b;
        if (sum < 100) {
            System.out.println("recurAddInt sum pre: " + sum);
            recurAddInt(sum, b);
            System.out.println("recurAddInt sum after: " + sum);
        }
    }

    private static int addInt(int a, int b) {
        int ret = a + b;
        try {
            System.out.println("addInt getPercentageWithThrow(3, 1 , 5): " + getPercentageWithThrow(3, 1 , 5));
            return ret;
        } catch (Exception e) {
            e.printStackTrace();
            return ret;
        } finally {
            System.out.println("in addInt finally 1");
            System.out.println("in addInt finally 2");
            System.out.println("in addInt finally 3");
        }
    }

    private static int addInt2(int a, int b) {
        int ret = a + b;
        try {
            System.out.println("addInt2 getPercentageWithThrow(3, 1 , 5): " + getPercentageWithThrow(3, 1 , 5));
            return ret;
        } catch (Exception e) {
            e.printStackTrace();
            try {
                System.out.println("addInt2 inner catch block getPercentageWithThrow(3, 1 , 5): " + getPercentageWithThrow(3, 1 , 5));
            } catch (Exception e2) {
                e2.printStackTrace();
            } finally {
                System.out.println("in addInt2 inner catch block finally 1");
                System.out.println("in addInt2 inner catch block finally 2");
                System.out.println("in addInt2 inner catch block finally 3");
                return ret;
            }
        } finally {
            System.out.println("in addInt2 finally 1");
            System.out.println("in addInt2 finally 2");
            System.out.println("in addInt2 finally 3");
            try {
                System.out.println("addInt2 inner finally block getPercentageWithThrow(3, 1 , 5): " + getPercentageWithThrow(3, 1 , 5));
            } catch (Exception e2) {
                e2.printStackTrace();
            } finally {
                System.out.println("in addInt2 inner finally block finally 1");
                System.out.println("in addInt2 inner finally block finally 2");
                System.out.println("in addInt2 inner finally block finally 3");
            }
        }
    }

    private static void addIntVoid(int a, int b) {
        int ret = a + b;
        try {
            System.out.println("addIntVoid getPercentageWithThrow(3, 1 , 5): " + getPercentageWithThrow(3, 1 , 5));
            System.out.println("ret addIntVoid try: " + ret);
            try {
                System.out.println("addIntVoid inner try block getPercentageWithThrow(3, 1 , 5): " + getPercentageWithThrow(3, 1 , 5));
                System.out.println("ret addIntVoid inner try block try: " + ret);
                return;
            } catch (Exception e) {
                e.printStackTrace();
                System.out.println("ret catch: " + ret);
                return;
            } finally {
                System.out.println("in addIntVoid inner try block finally 1");
                System.out.println("ret addIntVoid inner try block finally: " + ret);
                System.out.println("in addIntVoid inner try block finally 2");
            }
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("ret catch: " + ret);
            return;
        } finally {
            System.out.println("in addIntVoid finally 1");
            System.out.println("ret addIntVoid finally: " + ret);
            System.out.println("in addIntVoid finally 2");
        }
    }

    private static void addIntVoid2(int a, int b) {
        int ret = a + b;
        try {
            System.out.println("addIntVoid2 getPercentageWithThrow(3, 1 , 5): " + getPercentageWithThrow(3, 1 , 5));
            System.out.println("ret addIntVoid2 try: " + ret);
            try {
                System.out.println("addIntVoid2 inner try block getPercentageWithThrow(3, 1 , 5): " + getPercentageWithThrow(3, 1 , 5));
                System.out.println("ret addIntVoid2 inner try block try: " + ret);
                return;
            } catch (Exception e) {
                e.printStackTrace();
                System.out.println("ret addIntVoid2 inner try block catch: " + ret);
                return;
            } finally {
                System.out.println("in addIntVoid2 inner try block finally 1");
                System.out.println("ret addIntVoid2 inner try block finally: " + ret);
                System.out.println("in addIntVoid2 inner try block finally 2");
                return;
            }
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("ret addIntVoid2 catch: " + ret);
            return;
        } finally {
            System.out.println("in addIntVoid2 finally 1");
            System.out.println("ret addIntVoid2 finally: " + ret);
            System.out.println("in addIntVoid2 finally 2");
            return;
        }
    }

    static class Counter {
        private int count = 0;

        public void increment() {
            synchronized (this) {
                count++;
            }
        }

        public synchronized void decrement() {
            count--;
        }

        public Object getLock() {
            return this;
        }

        public int getCount() {
            synchronized (getLock()) {
                if (count < 0) {
                    return 0;
                }
                return count;
            }
        }
    }

    public static void main(String[] args) throws Exception {

        // Use try-with-resources
        try (BufferedReader reader = new BufferedReader(new FileReader("/no-such-file"))) {
            String line;
            while ((line = reader.readLine()) != null) {
                System.out.println(line);
            }
        } catch (IOException e) {
            System.err.println("Error reading the file: " + e.getMessage());
        }

        String today = "Friday";
        String dayType = switch (today) {
            case "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" -> "Weekday";
            case "Saturday", "Sunday" -> "Weekend";
            default -> "Invalid day";
        };
        System.out.println(today + " is: " + dayType);

        Counter counter = new Counter();

        String operation = "increment";  // try "increment", "decrement", "show"

        switch (operation) {
            case "increment":
                counter.increment();
                System.out.println("Counter incremented.");
                break;
            case "decrement":
                counter.decrement();
                System.out.println("Counter decremented.");
                break;
            case "show":
                System.out.println("Current count: " + counter.getCount());
                break;
            default:
                System.out.println("Unknown operation.");
        }

        System.out.println("Final count: " + counter.getCount());

        recurAddInt(13, 17);

        // boolean aaeee = true;
        // if (aaeee) {
        //     return;
        // }

        for (int i = 0; i < 2; i++) {
            System.out.println("main for outer i: " + i);
            for (int j = 0; j < 3; j++) {
                System.out.println("main for inner j: " + j);
            }
        }

        new Thread(() -> {
            while (true) {
                try {
                    System.out.println("addInt: " + addInt(1, 2));
                    Thread.sleep(8); // print every 8ms
                    addIntVoid(1, 2);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                } finally {
                    System.out.println("new thread xxx");
                }
            }
        }).start();

        new Thread(() -> {
            while (true) {
                try {
                    System.out.println("addInt2: " + addInt2(1, 2));
                    Thread.sleep(10); // print every 8ms
                    addIntVoid2(1, 2);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                } finally {
                    System.out.println("new thread yyy");
                }
            }
        }).start();

        // boolean bolleanGo = false;
        // if (!bolleanGo) {
        //     return;
        // }

        Main mainObj = new Main();
        mainObj.add(1, 2);
        Main.getInt(3);

        int[][] array2D = {
               {1, 2, 3},
               {4, 5, 6},
               {7, 8, 9}
           };

        System.out.println("2 di: " + Arrays.deepToString(array2D));

        if (111 == 222) {
            throw new Exception("An Exception won't be thrown:)");
        }

        boolean go = false;
        while (go) {
            throw new Exception("An Exception won't be thrown:)");
        }

        while (go)
            throw new Exception("An Exception won't be thrown:)");

        do {
            System.out.println("in block of do while");
        } while (1 == 2);

        do
            do
                do
                    System.out.println("in do while without block");
                while (1 == 2);
            while (1 == 2);
        while (1 == 2);

        Main main = new Main();
        System.out.println("Main object: " + main + ", getPercentage: " + main.getPercentage(3, 1 , 5));

        try {
            System.out.println("thread timer getPercentageWithThrow(3, 1 , 5): " + getPercentageWithThrow(3, 1 , 5));
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            System.out.println("in finally start");
            System.out.println("in finally...");
            System.out.println("in finally end");
        }

        if (111 == 222) {
            return;
        }

        byte[] byteArray = new byte[100]; // assume byteArray has 100 elements
        byte[] last50Bytes = Arrays.copyOfRange(byteArray, 50, 100);
        System.out.println(Arrays.toString(last50Bytes));

        Animal aa = new Animal() {
            {
                leg = 1;
            }

            @Override
            void makeNoise() {
                System.out.println("inner Bark!");
            }

            @Override
            int hasLegs() {
                System.out.println("inner legs: " + leg);
                return leg;
            }
        };

        aa.makeNoise();
        System.out.println("aa legs: " + aa.hasLegs());

        // Lambda ..start
        // Lambda 1: Check if a number is even
        Predicate<Integer> isEven = num -> num % 2 == 0;
        System.out.println("Is 4 even? " + isEven.test(4)); // Output: Is 4 even? true

        // Lambda 2: Multiply two integers
        BinaryOperator<Integer> multiply = (a, b) -> a * b;
        System.out.println("5 multiplied by 6 is: " + multiply.apply(5, 6)); // Output: 5 multiplied by 6 is: 30

        // Lambda 3: Convert an integer to a string
        Function<Integer, String> convertToString = (Integer num) -> Integer.toString(num);
        System.out.println("Converted to string: " + convertToString.apply(15)); // Output: Converted to string: 15

        // Lambda 4: Print a string
        Consumer<String> print = str -> System.out.println("Printing: " + str);
        print.accept("Hello, world!"); // Output: Printing: Hello, world!

        // Lambda 5: Classify an integer as positive, negative, or zero
        Function<Integer, String> classify = (Integer num) -> {
            var res = (num > 0) ? "Positive" :
                    (num < 0) ? "Negative" :
                    "Zero";
            return res;
        };
        System.out.println("Classification of -5: " + classify.apply(-5)); // Output: Classification of -5: Negative

        // Lambda 6: Classify2: Classify an integer as positive, negative, or zero
        Function<Integer, String> classify2 = (Integer num) -> {
            return (num > 0) ? "Positive" :
                    (num < 0) ? "Negative" :
                    "Zero";
        };
        System.out.println("Classification of 10: " + classify2.apply(10)); // Output: Classification of 10: Positive
        System.out.println("Classification of 0: " + classify2.apply(0)); // Output: Classification of 0: Zero
        // Lambda ..end

        Animal a = new Animal(); // Create an Animal object
        System.out.println("xxxx legs: " + a.hasLegs());
        Animal b = new Dog(); // Create a Dog object
        Cat c = new Cat();

        Thread threadA = new Thread(() -> {
            while (true) {
                System.out.println("threadA");
                a.makeNoise(); // Calls Animal's makeNoise()
                try {
                    Thread.sleep(8); // print every 8ms
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
        threadA.start();

        Thread threadB = new Thread(() -> {
            while (true) {
                System.out.println("threadB");
                b.makeNoise(); // Calls Dog's makeNoise()
                try {
                    Thread.sleep(15); // print every 15ms
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
        threadB.start();

        Timer timer = new Timer();
        timer.scheduleAtFixedRate(new TimerTask() {
            @Override
            public void run() {
                System.out.println("timer");
                c.makeNoise(); // Calls Cat's makeNoise()
                try {
                    System.out.println("thread timer getPercentageWithThrow(3, 1 , 5): " + getPercentageWithThrow(3, 1 , 5));
                } catch (Exception e) {
                    e.printStackTrace();
                }
                // Lambda that throws a checked exception
                ThrowingConsumer<String> throwingConsumer = s -> {
                    if (s == null) {
                        throw new Exception("Input cannot be null");
                    }
                    System.out.println(s);
                };

                // Lambda that throws an unchecked exception
                Consumer<String> consumer = s -> {
                    if (s == null) {
                        throw new IllegalArgumentException("Input cannot be null");
                    }
                    System.out.println(s);
                };

                try {
                    throwingConsumer.accept(null);
                } catch (Exception e) {
                    System.out.println("Caught exception: " + e.getMessage());
                }

                try {
                    consumer.accept(null);
                } catch (IllegalArgumentException e) {
                    System.out.println("Caught exception: " + e.getMessage());
                }
                if (timerCount > 1) {
                    System.exit(1); // abort the whole process.
                }
                timerCount++;
            }
        }, 20, 20); // start after 20ms delay and then print every 20ms

       while (true) {
            System.out.println("hello world2: " + new SimpleDateFormat("yyyyMMdd.HHmmss").format(new Date()));
            System.out.println("hello aa: " + getPercentage(0.0201, 0, 1));
            // get the runtime MXBean
            RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean();
            // get the PID
            String processID = runtime.getName().split("@")[0];

            // print the PID
            System.out.println("The process ID is: " + processID);
            System.out.println("   -------");
            System.out.println("");

            a.makeNoise(); // Calls Animal's makeNoise()
            b.makeNoise(); // Calls Dog's makeNoise()
            c.makeNoise(); // Calls Cat's makeNoise()

            Thread.sleep(10);
       }
    }

    private int add(int a, int b) {
        return a+b;
    }

    private static int getInt(int a) {
        return a;
    }
}
Variables All
No.FromNameValue
1class@296timerCount0
2class@296aa11
3class@296bwww
4296args[Ljava.lang.String;@18b4aac2
END 0 00
Output All Filter Merge
Process FilterThread Filter
794912 java 794913 java
795064 java 795087 Thread-3 795086 Thread-2 795084 Thread-1 795065 java 795088 Timer-0 795083 Thread-0
No.PNPIDTIDTNMessage
495java794912794913javahi v2
496java794912794913javahi v3
497java795064795065javaError reading the file: /no-such-file (No such file or directory)
498java795064795065javaFriday is: Weekday
499java795064795065javaCounter incremented.
500java795064795065javaFinal count: 1
501java795064795065javarecurAddInt sum pre: 30
502java795064795065javarecurAddInt sum pre: 47
503java795064795065javarecurAddInt sum pre: 64
504java795064795065javarecurAddInt sum pre: 81
505java795064795065javarecurAddInt sum pre: 98
506java795064795065javarecurAddInt sum after: 98
507java795064795065javarecurAddInt sum after: 81
508java795064795065javarecurAddInt sum after: 64
509java795064795065javarecurAddInt sum after: 47
510java795064795065javarecurAddInt sum after: 30
511java795064795065javamain for outer i: 0
512java795064795065javamain for inner j: 0
513java795064795065javamain for inner j: 1
514java795064795065javamain for inner j: 2
515java795064795065javamain for outer i: 1
516java795064795065javamain for inner j: 0
517java795064795065javamain for inner j: 1
518java795064795065javamain for inner j: 2
519java795064795083Thread-0java.lang.Exception: Throw an Exception!
520java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
521java795064795083Thread-0 at com.example.javase.Main.addInt(Main.java:164)
522java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:355)
523java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
524java795064795084Thread-1java.lang.Exception: Throw an Exception!
525java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
526java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:179)
527java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
528java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
529java795064795083Thread-0in addInt finally 1
530java795064795083Thread-0in addInt finally 2
531java795064795084Thread-1java.lang.Exception: Throw an Exception!
532java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
533java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:184)
534java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
535java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
536java795064795083Thread-0in addInt finally 3
537java795064795083Thread-0addInt: 3
538java795064795084Thread-1in addInt2 inner catch block finally 1
539java795064795084Thread-1in addInt2 inner catch block finally 2
540java795064795084Thread-1in addInt2 inner catch block finally 3
541java795064795084Thread-1in addInt2 finally 1
542java795064795084Thread-1in addInt2 finally 2
543java795064795065java2 di: [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
544java795064795084Thread-1in addInt2 finally 3
545java795064795084Thread-1java.lang.Exception: Throw an Exception!
546java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
547java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:198)
548java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
549java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
550java795064795084Thread-1in addInt2 inner finally block finally 1
551java795064795065javain block of do while
552java795064795084Thread-1in addInt2 inner finally block finally 2
553java795064795084Thread-1in addInt2 inner finally block finally 3
554java795064795084Thread-1addInt2: 3
555java795064795065javain do while without block
556java795064795083Thread-0java.lang.Exception: Throw an Exception!
557java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
558java795064795083Thread-0 at com.example.javase.Main.addIntVoid(Main.java:212)
559java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:357)
560java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
561java795064795083Thread-0ret catch: 3
562java795064795083Thread-0in addIntVoid finally 1
563java795064795083Thread-0ret addIntVoid finally: 3
564java795064795083Thread-0in addIntVoid finally 2
565java795064795083Thread-0new thread xxx
566java795064795083Thread-0java.lang.Exception: Throw an Exception!
567java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
568java795064795083Thread-0 at com.example.javase.Main.addInt(Main.java:164)
569java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:355)
570java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
571java795064795083Thread-0in addInt finally 1
572java795064795065javaMain object: com.example.javase.Main@5b2133b1, getPercentage: 0.5
573java795064795083Thread-0in addInt finally 2
574java795064795083Thread-0in addInt finally 3
575java795064795083Thread-0addInt: 3
576java795064795065javajava.lang.Exception: Throw an Exception!
577java795064795065java at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
578java795064795065java at com.example.javase.Main.main(Main.java:425)
579java795064795065javain finally start
580java795064795065javain finally...
581java795064795065javain finally end
582java795064795084Thread-1java.lang.Exception: Throw an Exception!
583java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
584java795064795084Thread-1 at com.example.javase.Main.addIntVoid2(Main.java:241)
585java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:371)
586java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
587java795064795084Thread-1ret addIntVoid2 catch: 3
588java795064795065java[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
589java795064795084Thread-1in addIntVoid2 finally 1
590java795064795084Thread-1ret addIntVoid2 finally: 3
591java795064795084Thread-1in addIntVoid2 finally 2
592java795064795084Thread-1new thread yyy
593java795064795065javaAnimal cs
594java795064795083Thread-0java.lang.Exception: Throw an Exception!
595java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
596java795064795083Thread-0 at com.example.javase.Main.addIntVoid(Main.java:212)
597java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:357)
598java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
599java795064795084Thread-1java.lang.Exception: Throw an Exception!
600java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
601java795064795083Thread-0ret catch: 3
602java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:179)
603java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
604java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
605java795064795083Thread-0in addIntVoid finally 1
606java795064795083Thread-0ret addIntVoid finally: 3
607java795064795083Thread-0in addIntVoid finally 2
608java795064795083Thread-0new thread xxx
609java795064795084Thread-1java.lang.Exception: Throw an Exception!
610java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
611java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:184)
612java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
613java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
614java795064795084Thread-1in addInt2 inner catch block finally 1
615java795064795084Thread-1in addInt2 inner catch block finally 2
616java795064795083Thread-0java.lang.Exception: Throw an Exception!
617java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
618java795064795084Thread-1in addInt2 inner catch block finally 3
619java795064795083Thread-0 at com.example.javase.Main.addInt(Main.java:164)
620java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:355)
621java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
622java795064795065javainner Bark!
623java795064795084Thread-1in addInt2 finally 1
624java795064795084Thread-1in addInt2 finally 2
625java795064795083Thread-0in addInt finally 1
626java795064795084Thread-1in addInt2 finally 3
627java795064795083Thread-0in addInt finally 2
628java795064795083Thread-0in addInt finally 3
629java795064795083Thread-0addInt: 3
630java795064795065javainner legs: 1
631java795064795084Thread-1java.lang.Exception: Throw an Exception!
632java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
633java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:198)
634java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
635java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
636java795064795084Thread-1in addInt2 inner finally block finally 1
637java795064795084Thread-1in addInt2 inner finally block finally 2
638java795064795065javaaa legs: 1
639java795064795084Thread-1in addInt2 inner finally block finally 3
640java795064795084Thread-1addInt2: 3
641java795064795065javaIs 4 even? true
642java795064795065java5 multiplied by 6 is: 30
643java795064795065javaConverted to string: 15
644java795064795065javaPrinting: Hello, world!
645java795064795083Thread-0java.lang.Exception: Throw an Exception!
646java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
647java795064795083Thread-0 at com.example.javase.Main.addIntVoid(Main.java:212)
648java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:357)
649java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
650java795064795065javaClassification of -5: Negative
651java795064795083Thread-0ret catch: 3
652java795064795083Thread-0in addIntVoid finally 1
653java795064795083Thread-0ret addIntVoid finally: 3
654java795064795083Thread-0in addIntVoid finally 2
655java795064795083Thread-0new thread xxx
656java795064795083Thread-0java.lang.Exception: Throw an Exception!
657java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
658java795064795065javaClassification of 10: Positive
659java795064795083Thread-0 at com.example.javase.Main.addInt(Main.java:164)
660java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:355)
661java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
662java795064795083Thread-0in addInt finally 1
663java795064795084Thread-1java.lang.Exception: Throw an Exception!
664java795064795083Thread-0in addInt finally 2
665java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
666java795064795084Thread-1 at com.example.javase.Main.addIntVoid2(Main.java:241)
667java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:371)
668java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
669java795064795083Thread-0in addInt finally 3
670java795064795084Thread-1ret addIntVoid2 catch: 3
671java795064795083Thread-0addInt: 3
672java795064795065javaClassification of 0: Zero
673java795064795084Thread-1in addIntVoid2 finally 1
674java795064795084Thread-1ret addIntVoid2 finally: 3
675java795064795084Thread-1in addIntVoid2 finally 2
676java795064795084Thread-1new thread yyy
677java795064795065javaAnimal cs
678java795064795084Thread-1java.lang.Exception: Throw an Exception!
679java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
680java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:179)
681java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
682java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
683java795064795084Thread-1java.lang.Exception: Throw an Exception!
684java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
685java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:184)
686java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
687java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
688java795064795084Thread-1in addInt2 inner catch block finally 1
689java795064795065javaxxxx legs: 16
690java795064795084Thread-1in addInt2 inner catch block finally 2
691java795064795084Thread-1in addInt2 inner catch block finally 3
692java795064795084Thread-1in addInt2 finally 1
693java795064795084Thread-1in addInt2 finally 2
694java795064795084Thread-1in addInt2 finally 3
695java795064795065javaAnimal cs
696java795064795084Thread-1java.lang.Exception: Throw an Exception!
697java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
698java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:198)
699java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
700java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
701java795064795084Thread-1in addInt2 inner finally block finally 1
702java795064795084Thread-1in addInt2 inner finally block finally 2
703java795064795084Thread-1in addInt2 inner finally block finally 3
704java795064795084Thread-1addInt2: 3
705java795064795065javaCat static!
706java795064795065javaAnimal cs
707java795064795083Thread-0java.lang.Exception: Throw an Exception!
708java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
709java795064795083Thread-0 at com.example.javase.Main.addIntVoid(Main.java:212)
710java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:357)
711java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
712java795064795083Thread-0ret catch: 3
713java795064795083Thread-0in addIntVoid finally 1
714java795064795083Thread-0ret addIntVoid finally: 3
715java795064795083Thread-0in addIntVoid finally 2
716java795064795083Thread-0new thread xxx
717java795064795083Thread-0java.lang.Exception: Throw an Exception!
718java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
719java795064795083Thread-0 at com.example.javase.Main.addInt(Main.java:164)
720java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:355)
721java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
722java795064795083Thread-0in addInt finally 1
723java795064795083Thread-0in addInt finally 2
724java795064795083Thread-0in addInt finally 3
725java795064795083Thread-0addInt: 3
726java795064795086Thread-2threadA
727java795064795086Thread-2Generic animal noise
728java795064795087Thread-3threadB
729java795064795087Thread-3Bark!
730java795064795084Thread-1java.lang.Exception: Throw an Exception!
731java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
732java795064795084Thread-1 at com.example.javase.Main.addIntVoid2(Main.java:241)
733java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:371)
734java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
735java795064795084Thread-1ret addIntVoid2 catch: 3
736java795064795084Thread-1in addIntVoid2 finally 1
737java795064795084Thread-1ret addIntVoid2 finally: 3
738java795064795084Thread-1in addIntVoid2 finally 2
739java795064795084Thread-1new thread yyy
740java795064795084Thread-1java.lang.Exception: Throw an Exception!
741java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
742java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:179)
743java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
744java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
745java795064795084Thread-1java.lang.Exception: Throw an Exception!
746java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
747java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:184)
748java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
749java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
750java795064795084Thread-1in addInt2 inner catch block finally 1
751java795064795084Thread-1in addInt2 inner catch block finally 2
752java795064795084Thread-1in addInt2 inner catch block finally 3
753java795064795083Thread-0java.lang.Exception: Throw an Exception!
754java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
755java795064795083Thread-0 at com.example.javase.Main.addIntVoid(Main.java:212)
756java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:357)
757java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
758java795064795084Thread-1in addInt2 finally 1
759java795064795083Thread-0ret catch: 3
760java795064795084Thread-1in addInt2 finally 2
761java795064795083Thread-0in addIntVoid finally 1
762java795064795084Thread-1in addInt2 finally 3
763java795064795083Thread-0ret addIntVoid finally: 3
764java795064795083Thread-0in addIntVoid finally 2
765java795064795083Thread-0new thread xxx
766java795064795084Thread-1java.lang.Exception: Throw an Exception!
767java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
768java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:198)
769java795064795086Thread-2threadA
770java795064795086Thread-2Generic animal noise
771java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
772java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
773java795064795083Thread-0java.lang.Exception: Throw an Exception!
774java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
775java795064795083Thread-0 at com.example.javase.Main.addInt(Main.java:164)
776java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:355)
777java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
778java795064795084Thread-1in addInt2 inner finally block finally 1
779java795064795084Thread-1in addInt2 inner finally block finally 2
780java795064795084Thread-1in addInt2 inner finally block finally 3
781java795064795083Thread-0in addInt finally 1
782java795064795084Thread-1addInt2: 3
783java795064795083Thread-0in addInt finally 2
784java795064795083Thread-0in addInt finally 3
785java795064795083Thread-0addInt: 3
786java795064795087Thread-3threadB
787java795064795087Thread-3Bark!
788java795064795086Thread-2threadA
789java795064795086Thread-2Generic animal noise
790java795064795083Thread-0java.lang.Exception: Throw an Exception!
791java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
792java795064795083Thread-0 at com.example.javase.Main.addIntVoid(Main.java:212)
793java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:357)
794java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
795java795064795083Thread-0ret catch: 3
796java795064795083Thread-0in addIntVoid finally 1
797java795064795083Thread-0ret addIntVoid finally: 3
798java795064795083Thread-0in addIntVoid finally 2
799java795064795083Thread-0new thread xxx
800java795064795084Thread-1java.lang.Exception: Throw an Exception!
801java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
802java795064795088Timer-0timer
803java795064795084Thread-1 at com.example.javase.Main.addIntVoid2(Main.java:241)
804java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:371)
805java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
806java795064795088Timer-0Meow!
807java795064795083Thread-0java.lang.Exception: Throw an Exception!
808java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
809java795064795083Thread-0 at com.example.javase.Main.addInt(Main.java:164)
810java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:355)
811java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
812java795064795083Thread-0in addInt finally 1
813java795064795083Thread-0in addInt finally 2
814java795064795083Thread-0in addInt finally 3
815java795064795083Thread-0addInt: 3
816java795064795088Timer-0java.lang.Exception: Throw an Exception!
817java795064795088Timer-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
818java795064795088Timer-0 at com.example.javase.Main$2.run(Main.java:536)
819java795064795088Timer-0 at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
820java795064795088Timer-0 at java.base/java.util.TimerThread.run(Timer.java:516)
821java795064795084Thread-1ret addIntVoid2 catch: 3
822java795064795084Thread-1in addIntVoid2 finally 1
823java795064795084Thread-1ret addIntVoid2 finally: 3
824java795064795084Thread-1in addIntVoid2 finally 2
825java795064795084Thread-1new thread yyy
826java795064795086Thread-2threadA
827java795064795086Thread-2Generic animal noise
828java795064795084Thread-1java.lang.Exception: Throw an Exception!
829java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
830java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:179)
831java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
832java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
833java795064795088Timer-0Caught exception: Input cannot be null
834java795064795084Thread-1java.lang.Exception: Throw an Exception!
835java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
836java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:184)
837java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
838java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
839java795064795088Timer-0Caught exception: Input cannot be null
840java795064795084Thread-1in addInt2 inner catch block finally 1
841java795064795084Thread-1in addInt2 inner catch block finally 2
842java795064795084Thread-1in addInt2 inner catch block finally 3
843java795064795084Thread-1in addInt2 finally 1
844java795064795084Thread-1in addInt2 finally 2
845java795064795084Thread-1in addInt2 finally 3
846java795064795084Thread-1java.lang.Exception: Throw an Exception!
847java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
848java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:198)
849java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
850java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
851java795064795084Thread-1in addInt2 inner finally block finally 1
852java795064795084Thread-1in addInt2 inner finally block finally 2
853java795064795084Thread-1in addInt2 inner finally block finally 3
854java795064795084Thread-1addInt2: 3
855java795064795087Thread-3threadB
856java795064795087Thread-3Bark!
857java795064795083Thread-0java.lang.Exception: Throw an Exception!
858java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
859java795064795083Thread-0 at com.example.javase.Main.addIntVoid(Main.java:212)
860java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:357)
861java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
862java795064795083Thread-0ret catch: 3
863java795064795083Thread-0in addIntVoid finally 1
864java795064795086Thread-2threadA
865java795064795083Thread-0ret addIntVoid finally: 3
866java795064795083Thread-0in addIntVoid finally 2
867java795064795086Thread-2Generic animal noise
868java795064795083Thread-0new thread xxx
869java795064795083Thread-0java.lang.Exception: Throw an Exception!
870java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
871java795064795083Thread-0 at com.example.javase.Main.addInt(Main.java:164)
872java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:355)
873java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
874java795064795083Thread-0in addInt finally 1
875java795064795083Thread-0in addInt finally 2
876java795064795083Thread-0in addInt finally 3
877java795064795083Thread-0addInt: 3
878java795064795088Timer-0timer
879java795064795088Timer-0Meow!
880java795064795088Timer-0java.lang.Exception: Throw an Exception!
881java795064795088Timer-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
882java795064795088Timer-0 at com.example.javase.Main$2.run(Main.java:536)
883java795064795088Timer-0 at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
884java795064795088Timer-0 at java.base/java.util.TimerThread.run(Timer.java:516)
885java795064795088Timer-0Caught exception: Input cannot be null
886java795064795084Thread-1java.lang.Exception: Throw an Exception!
887java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
888java795064795084Thread-1 at com.example.javase.Main.addIntVoid2(Main.java:241)
889java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:371)
890java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
891java795064795088Timer-0Caught exception: Input cannot be null
892java795064795084Thread-1ret addIntVoid2 catch: 3
893java795064795084Thread-1in addIntVoid2 finally 1
894java795064795084Thread-1ret addIntVoid2 finally: 3
895java795064795084Thread-1in addIntVoid2 finally 2
896java795064795084Thread-1new thread yyy
897java795064795084Thread-1java.lang.Exception: Throw an Exception!
898java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
899java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:179)
900java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
901java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
902java795064795065javahello world2: 20240730.103411
903java795064795086Thread-2threadA
904java795064795086Thread-2Generic animal noise
905java795064795083Thread-0java.lang.Exception: Throw an Exception!
906java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
907java795064795083Thread-0 at com.example.javase.Main.addIntVoid(Main.java:212)
908java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:357)
909java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
910java795064795087Thread-3threadB
911java795064795083Thread-0ret catch: 3
912java795064795087Thread-3Bark!
913java795064795083Thread-0in addIntVoid finally 1
914java795064795083Thread-0ret addIntVoid finally: 3
915java795064795083Thread-0in addIntVoid finally 2
916java795064795084Thread-1java.lang.Exception: Throw an Exception!
917java795064795083Thread-0new thread xxx
918java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
919java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:184)
920java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
921java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
922java795064795084Thread-1in addInt2 inner catch block finally 1
923java795064795084Thread-1in addInt2 inner catch block finally 2
924java795064795084Thread-1in addInt2 inner catch block finally 3
925java795064795084Thread-1in addInt2 finally 1
926java795064795083Thread-0java.lang.Exception: Throw an Exception!
927java795064795084Thread-1in addInt2 finally 2
928java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
929java795064795083Thread-0 at com.example.javase.Main.addInt(Main.java:164)
930java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:355)
931java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
932java795064795084Thread-1in addInt2 finally 3
933java795064795083Thread-0in addInt finally 1
934java795064795083Thread-0in addInt finally 2
935java795064795083Thread-0in addInt finally 3
936java795064795065javahello aa: 0.03
937java795064795083Thread-0addInt: 3
938java795064795084Thread-1java.lang.Exception: Throw an Exception!
939java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
940java795064795084Thread-1 at com.example.javase.Main.addInt2(Main.java:198)
941java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:369)
942java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
943java795064795084Thread-1in addInt2 inner finally block finally 1
944java795064795084Thread-1in addInt2 inner finally block finally 2
945java795064795084Thread-1in addInt2 inner finally block finally 3
946java795064795084Thread-1addInt2: 3
947java795064795086Thread-2threadA
948java795064795086Thread-2Generic animal noise
949java795064795083Thread-0java.lang.Exception: Throw an Exception!
950java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
951java795064795083Thread-0 at com.example.javase.Main.addIntVoid(Main.java:212)
952java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:357)
953java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
954java795064795083Thread-0ret catch: 3
955java795064795083Thread-0in addIntVoid finally 1
956java795064795088Timer-0timer
957java795064795083Thread-0ret addIntVoid finally: 3
958java795064795088Timer-0Meow!
959java795064795083Thread-0in addIntVoid finally 2
960java795064795083Thread-0new thread xxx
961java795064795088Timer-0java.lang.Exception: Throw an Exception!
962java795064795088Timer-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
963java795064795088Timer-0 at com.example.javase.Main$2.run(Main.java:536)
964java795064795088Timer-0 at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
965java795064795088Timer-0 at java.base/java.util.TimerThread.run(Timer.java:516)
966java795064795083Thread-0java.lang.Exception: Throw an Exception!
967java795064795083Thread-0 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
968java795064795083Thread-0 at com.example.javase.Main.addInt(Main.java:164)
969java795064795083Thread-0 at com.example.javase.Main.lambda$main$0(Main.java:355)
970java795064795083Thread-0 at java.base/java.lang.Thread.run(Thread.java:840)
971java795064795087Thread-3threadB
972java795064795084Thread-1java.lang.Exception: Throw an Exception!
973java795064795084Thread-1 at com.example.javase.Main.getPercentageWithThrow(Main.java:136)
974java795064795084Thread-1 at com.example.javase.Main.addIntVoid2(Main.java:241)
975java795064795084Thread-1 at com.example.javase.Main.lambda$main$1(Main.java:371)
976java795064795087Thread-3Bark!
977java795064795084Thread-1 at java.base/java.lang.Thread.run(Thread.java:840)
978java795064795083Thread-0in addInt finally 1
979java795064795084Thread-1ret addIntVoid2 catch: 3
980java795064795088Timer-0Caught exception: Input cannot be null
981java795064795083Thread-0in addInt finally 2
982java795064795083Thread-0in addInt finally 3
983java795064795084Thread-1in addIntVoid2 finally 1
984java795064795083Thread-0addInt: 3
985java795064795088Timer-0Caught exception: Input cannot be null
986java795064795086Thread-2threadA
987java795064795084Thread-1ret addIntVoid2 finally: 3
988java795064795086Thread-2Generic animal noise
END 0 0 0 00
Project:javaTestDemo
Update:20240729
Commit:b2a952a
BuildTool:Java11
Compiler:Java11
Runtime:OpenJDK11
System:MySystemD
Kernel:Linux5.10.211
Cpu:Intel:Corei7-7700K
Machine:AwesomeMachine