What are the types of string available in Kotlin?

All QuestionsCategory: KotlinWhat are the types of string available in Kotlin?
chetan shidling asked 4 years ago

I need short information.

1 Answers
chetan shidling answered 4 years ago

The types of string available in Kotlin are:

  1. Raw string
  2. Escaped string

 
Example:

fun main(args: Array<String>) {
   var rawString :String  = "I am Raw String Chetan Shidling"
   val escapedString : String  = "I am escaped String Chetan Shidling!\n"
   
   println("Hello!"+escapedString)
   println("Hey!!"+rawString)   
}