private fun plus(){ val num1 = num1TextE.text.toString().toInt() val num2 = num2TextE.text.toString().toInt() if(checkEditTextEmpty()){ resultText.visibility = View.VISIBLE var result = num1 + num2 resultText.text = "Result is $result" num1TextE.text = // make it equal to result } }
num1TextE.text = result.toString()
EditText
String
setText
text
num1TextE?.setText(result)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)