google dev console watch html element with class name code example
Example: angular read element from html by atribute name
int number = 20;
Thread newThread = new Thread(() -> {
System.out.println("Factorial of " + number + " is: " + factorial(number));
});
newThread.start();