daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Top