title: Can we use Kotlin For Loop on Android Studio EditText whose Id contains integer?
body: <p>Can we use Kotlin For Loop on EditText whose Id contains integer? I was thinking about converting the EdiText Id to sting, edit, then concatenate but I got error in the IDE.</p>
  
  <p>Can we shorten this code:</p>
  
  <pre><code>R.id.clearNutCountButton -&gt; {
              b1p1.text.clear()
              b2p1.text.clear()
              b3p1.text.clear()
              b1p2.text.clear()
              b2p2.text.clear()
              b3p2.text.clear()
              b1p3.text.clear()
              b2p3.text.clear()
              b3p3.text.clear()
              b1p4.text.clear()
              b2p4.text.clear()
              b3p4.text.clear()
              b1p5.text.clear()
              b2p5.text.clear()
              b3p5.text.clear()
              b1p6.text.clear()
              b2p6.text.clear()
              b3p6.text.clear()
              b1p7.text.clear()
              b2p7.text.clear()
              b3p7.text.clear()
              b1p8.text.clear()
              b2p8.text.clear()
              b3p8.text.clear()
              b1p9.text.clear()
              b2p9.text.clear()
              b3p9.text.clear()
              b1p10.text.clear()
              b2p10.text.clear()
              b3p10.text.clear()
              b1p11.text.clear()
              b2p11.text.clear()
              b3p11.text.clear()
              b1p12.text.clear()
              b2p12.text.clear()
              b3p12.text.clear()
              b1p13.text.clear()
              b2p13.text.clear()
              b3p13.text.clear()
              b1p14.text.clear()
              b2p14.text.clear()
              b3p14.text.clear()
              b1p15.text.clear()
              b2p15.text.clear()
              b3p15.text.clear()
  }
  </code></pre>