Replace if-else method with lambda

前端 未结 0 397
陌清茗
陌清茗 2021-01-15 00:23

Is it possible to replace a series of if-else clauses such as the firstMatchedValue method below

foo() {
    String value = firstMatchedValue("input"         


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