Issue
I am new to programming so any help would be appreciated
buFindAge.setOnClickListener {
val YearOfBirth:Int=txtYearOfBirth.toString().toInt()
val myAge:Int=2018-YearOfBirth
tvShowAge.text=myAge.toString()
tvShowAge.text="$myAge" // Same error
}
Solution
Use .setText()
instead of text=
Answered By - Alvaro
Answer Checked By - Cary Denson (JavaFixing Admin)