how to change the conditionals in my program from an if to a ternary in java

后端 未结 0 1291
南笙
南笙 2020-12-02 03:18
    if (id == 0)
    return "To start playing the game press \\"play\\"";
    else {
    return Game.play(message, players.get(id));
    }


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