Kotlin Program:

- To find the string length

Example:

User Input: Hello World

Output: 11

import java.util.Scanner
fun main(args: Array<String>) {
  print("Enter your string : ")
  val userInput = Scanner(System.`in`)
  var s1:String
  s1=userInput.nextLine()

  println("String length : ${s1.length}")
}

Output:

  Enter your string : Blue Sky
  String length : 8
Program
basic
s1.length

Use .length to find any string length

Concept

Coming Soon !

Quick
Tutorial

Quote

I believe things cannot make themselves impossible.