20 lines
278 B
Plaintext
20 lines
278 B
Plaintext
![]() |
Replace the operators with a single one if that is the intention
|
||
|
|
||
|
[source,java]
|
||
|
----
|
||
|
int target = -5;
|
||
|
int num = 3;
|
||
|
|
||
|
target -= num; // target = -8
|
||
|
----
|
||
|
|
||
|
Or fix the spacing to avoid confusion
|
||
|
|
||
|
[source,java]
|
||
|
----
|
||
|
int target = -5;
|
||
|
int num = 3;
|
||
|
|
||
|
target = -num; // target = -3
|
||
|
----
|