Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 76 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. EditText input = findViewById(R.id.inputtext);
  2.     Button show = findViewById(R.id.button);
  3.     TextView output = findViewById(R.id.output);
  4.     String [] name = new String[3];
  5.  
  6.     for (int i = 0 ; i < 3 ; i++)
  7.     {
  8.         name[i] = input.getText().toString();
  9.         output.setText(name[i]);
  10.     }
  11.    
  12. name[0] = john
  13. name[1] = steve
  14. name[2] = frank
  15.    
  16. name[0] = john
  17.           steve
  18.           frank
  19.    
  20. output.setText(name[i] + i)
  21.    
  22. john 0
  23. steve 1
  24. frank 2
  25.    
  26. john
  27. steve
  28. frank2
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top