I am currently teaching myself Java, and there is a question asking me in my book which of the following expressions are illegal:
2.3 * 1.2
5.67 - 2
25.0 / 5.0
7.0 % 3.0
8 % 2.0
But after re-reading everything, writing a program containing the expressions, and searching the internet, I have seen nothing wrong with these expressions.
Could someone point out something I am missing?
Thanks for your time.