Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int arr [100] = new int [];
- int i = 0;
- Button button = (Button) findViewById(R.id.button);
- button.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- arr [i] = i;
- }
- });
Add Comment
Please, Sign In to add comment