📌  相关文章
📜  无法应用 java lang integer android - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:34.533000             🧑  作者: Mango

代码示例1
val a = result.text.toString()
 val b = resultHist1.text.toString()

 if(!a.isNullOrEmpty() &&  !b.isNullOrEmpty() ){
    val a = a.toInt()
    val b = b.toInt()
    calcHist1.text = (a+b).toString()
   }
   else
   {
   calcHist1.text = ""
   }