// The scope of a variable created inside of {curly braces},

// such as textView, extends from the statement in which the

// variable was created to the point immediately before the next

// closing brace.

@Override

protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_main);

    TextView textView = (TextView) findViewById(R.id.textView);

    textView setText("Hello");

}