I want to add first and second value of editText. For example: If user enters 15 then add 1 into 5. I have tried this code:
val input = editText.text
if (input.length == 2) {
val firstValue = input.length == 1
val secondValue = input.length == 2
val result = firstValue + secondValue
textView.text = result
}
but I get this result: "[Ljava.lang.Boolean;@312b186"