return two values kotlin
fun main() {
val userFeedback = UserFeedback("Siv", "[email protected]", "Can you check this")
val (name, emailId) = userFeedback
System.out.println("emailId :" + emailId)
System.out.println("name :" + name)
}
data class UserFeedback constructor(val name: String, val emailId: String, val comments: String)