A simple question about notation.
For what reason do I have to write "int" in parentheses after the equals sign since otherwise compiling fails?
int number = (int)Math.random();
Why does not compiler recognize second "int" as the first one in the same line?