Monday, 21 September 2020

Scala: Convert character to integer

 

scala> 'A'.toInt
val res60: Int = 65

scala> 'C'.toInt
val res61: Int = 67

 

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment