• +91 9723535972
  • info@interviewmaterial.com

Kotlin Interview Questions and Answers

Question - How to convert a String into an int in the kotlin?

Answer -

To convert a string value to the string value to it in kotlin we use point() method.

Let us see an example: 

function main(args: array) 
{
    val s: str]ng = "Kotlin"
    var y = 10
    y = "10".toint()
}

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners