阅读背景:

如何将Option [String]转换为Option [Int]?

来源:互联网 

I am reading and parsing a json file. One of the field of the json file is Nullable. It either returns a string of digits or Null. I need to convert the string to int. I am able to convert from String to Option[Int] by the below code, but not able to convert from Option[String] to Option[Int]I am reading and parsing a json file. One of th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: