Does java support inline declaration and assignment in a conditional statement?

前端 未结 0 1682
暖寄归人
暖寄归人 2021-02-05 08:24

First way (successful):

               double newMed =0;
               double minMed = (newMed= median) < minMed ? newMed : minMed;

Second wa

相关标签:
回答
  • 消灭零回复
提交回复
热议问题