title: Outputting inputted text in Android Studio
body: <p>Why is this not working:</p>
  
  <pre><code>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());
      }
  }
  </code></pre>
  
  <p>It doesn't give an error either.</p>