generalize Int -> Int, Int-> String, String -> String, String -> Int

后端 未结 0 438
春和景丽
春和景丽 2021-01-25 20:33

I have 4 methods with one logic and 4 possible type mapping:

  def convertStringToString(in: String): Int = ???
  def convertIntToString(in: Int): String = ???
           


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