var = expr ;where var is a Java variable and expr is an expression of type compatible with the type of var.
In Java, an assignment is technically an expression, exactly as it is in C. Hence, Java will accept assignments that are embedded inside expessions. This coding practice is considered bad style in Java and will not be mentioned again in this monograph.