What's the best way to perform a 1 line functionality in java 8 based on a boolean flag?

前端 未结 0 682
灰色年华
灰色年华 2021-01-05 19:55

I have a boolean flag based on which I want to perform a 1 line functionality say increment a variable or call an object\'s method etc. What\'s the best way to do this with

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