Why is this not working:

```
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    private EditText Name;
    private TextView output;

    public void buttonOnClick(View v){
        Button button = (Button) v;
        Name = (EditText) findViewById(R.id.editText);
        output = (TextView) findViewById(R.id.textView);
        output.setText(Name.getText());
    }
}

```

It doesn't give an error either.