plus
Returns a string obtained by concatenating this string with the string representation of the given other object.
Since Kotlin
1.0Samples
import kotlin.test.*
fun main() {
//sampleStart
println("Ko" + "dee") // Kodee
// 2 is not a string, but plus concatenates its string representation with the "Kotlin " string
println("Kotlin " + 2) // Kotlin 2
// list is converted to a String first and then concatenated with the "Numbers: " string
println("Numbers: " + listOf(1, 2, 3)) // Numbers: [1, 2, 3]
//sampleEnd
}Returns a string obtained by concatenating this string with the string representation of the given other object.
Since Kotlin
1.1Samples
import kotlin.test.*
fun main() {
//sampleStart
println("Ko" + "dee") // Kodee
// 2 is not a string, but plus concatenates its string representation with the "Kotlin " string
println("Kotlin " + 2) // Kotlin 2
// list is converted to a String first and then concatenated with the "Numbers: " string
println("Numbers: " + listOf(1, 2, 3)) // Numbers: [1, 2, 3]
//sampleEnd
}Returns a string obtained by concatenating this string with the string representation of the given other object.
Since Kotlin
1.0Samples
import kotlin.test.*
fun main() {
//sampleStart
println("Ko" + "dee") // Kodee
// 2 is not a string, but plus concatenates its string representation with the "Kotlin " string
println("Kotlin " + 2) // Kotlin 2
// list is converted to a String first and then concatenated with the "Numbers: " string
println("Numbers: " + listOf(1, 2, 3)) // Numbers: [1, 2, 3]
//sampleEnd
}Returns a string obtained by concatenating this string with the string representation of the given other object.
Since Kotlin
1.3Samples
import kotlin.test.*
fun main() {
//sampleStart
println("Ko" + "dee") // Kodee
// 2 is not a string, but plus concatenates its string representation with the "Kotlin " string
println("Kotlin " + 2) // Kotlin 2
// list is converted to a String first and then concatenated with the "Numbers: " string
println("Numbers: " + listOf(1, 2, 3)) // Numbers: [1, 2, 3]
//sampleEnd
}Returns a string obtained by concatenating this string with the string representation of the given other object.
Since Kotlin
1.8Samples
import kotlin.test.*
fun main() {
//sampleStart
println("Ko" + "dee") // Kodee
// 2 is not a string, but plus concatenates its string representation with the "Kotlin " string
println("Kotlin " + 2) // Kotlin 2
// list is converted to a String first and then concatenated with the "Numbers: " string
println("Numbers: " + listOf(1, 2, 3)) // Numbers: [1, 2, 3]
//sampleEnd
}Returns a string obtained by concatenating this string with the string representation of the given other object.
Since Kotlin
1.8Samples
import kotlin.test.*
fun main() {
//sampleStart
println("Ko" + "dee") // Kodee
// 2 is not a string, but plus concatenates its string representation with the "Kotlin " string
println("Kotlin " + 2) // Kotlin 2
// list is converted to a String first and then concatenated with the "Numbers: " string
println("Numbers: " + listOf(1, 2, 3)) // Numbers: [1, 2, 3]
//sampleEnd
}