cannot apply java lang integer android

Solutions on MaxInterview for cannot apply java lang integer android by the best coders in the world

showing results for - "cannot apply java lang integer android"
Lena
12 May 2018
1val a = result.text.toString()
2 val b = resultHist1.text.toString()
3
4 if(!a.isNullOrEmpty() &&  !b.isNullOrEmpty() ){
5    val a = a.toInt()
6    val b = b.toInt()
7    calcHist1.text = (a+b).toString()
8   }
9   else
10   {
11   calcHist1.text = ""
12   }