Kotlin Program:

- To join 2 strings

Example:

User Input: Blue
Sky

Output: BlueSky

import java.util.Scanner
fun main(args: Array<String>) {

  val userInput = Scanner(System.`in`)
  var s1:String
  var s2:String
  var s3:String
  print("Enter your 1st string : ");
  s1=userInput.nextLine()
  print("Enter your 2nd string : ");

  s3=s1+s2
  println("Your Joined string : $s3")
}

Output:

  Enter your 1st string : Hello
  Enter your 2nd string : World
  Your Joined String : HelloWorld
Program
basic

Use add(+) operator to join any number of string

//s3 stores joined string
  s3 = s1+s2;
Concept

Coming Soon !

Quick
Tutorial

Quote

You cannot have a positive life and a negative mind.