Meaning of *= in Java

后端 未结 4 1751
孤城傲影
孤城傲影 2021-01-20 21:00

I see an unfamiliar notation in the Android source code: *=

For example: density *= invertedRatio;

I am not familiar with the star-

4条回答
  •  盖世英雄少女心
    2021-01-20 21:33

    density *= invertedRatio; is a shortened version of density = density * invertedRatio;

    This notation comes from C.

提交回复
热议问题