Realize that this style came from C and C++ where if you made a typo
the compiler would merrily turn that into, effectively
In words, c would get assigned the value 'A' (instead of compared to it) and the if-test would pass since the value of an assignment is the assigned value itself.
In
Java, that would be illegal, so that typo is caught by the compiler.