Java can't while like C?

clipboard.png
clipboard.png

Feb.28,2021

isn't it obvious that this error is reported? While wants a boolean expression, and NMurray-is obviously not of type boolean


C is weakly typed language.
Java is strongly typed language.

Menu