loops - How can i do calculations on Textview setText Android -


how can add value of n 2 ?, ie., n+2 textview output should 4 .

int n=2; private void tvm() {             if (n<=maxcount) {                 n++;                 textview.settext("counter:"+ n+2);                  }    

int n=2; private void tvm() {             if (n<=maxcount) {                             textview.settext("counter:"+ string.valueof( n+2));                      n++;               }    

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -